Store the players in a HashSet or List, (if you only need the names) and then find them from there. On disconnect remove them from the hashmap....
you never checked if chat is equal to true so you cant make an else if for if it's equal to false. Check if its equal to true first
@ScorixEar Not sure if you want to do this but you can separate the blocks and check if they are in the same chunk or not. If they arent in the...
What I am doing is I'm making a fake player that follows the player who spawned it in around. However the problem is that I want him to stop...
@AlvinB Sorry I'm a bit new to packets, is the class "PacketPlayOutRelEntityMove"? Also if it is, is there any alternative because when I do use...
I currently have a EntityPlayer spawned in but I'm not sure how to make it move. EntityPlayer.move doesnt seem to work, and actually nothing...
Which one is faster and I'm doing this: Per player files, so a new file is created everytime a player joins the server. These files are read into...
Why not just use an array in the hashmap instead of creating an object
@Bamco6657 Where are you getting synxtax errors please screenshot also, then just add it as a sring list in the config, and set it to the format...
@Alex_Cboy Just do Location loc = set.getKey();
Make an inventoryclickevent, check if the Inventory is equal to the inventory the player has open by either checking the name or the inventory...
@Alex_Cboy Are you using map.entrySet?
Wouldnt it just be better to create a Game object that contains whatever you need and just loop through the game object if you ever need to get...
@Bamco6657 Please do what mythbusterma said, create a new Location object and parse the information out. When you're doing s.split(",") that is...
@Edmond506 HashMap<String, Integer> map = new HashMap<>(); public void add() { for(config...) { int kills =...
Separate names with a comma.