@EventHandler public void onHeal(PlayerInteractEvent e){ Player p = e.getPlayer(); if(p.getItemInHand().getType() ==...
Just make your own method, or save the config again.
add reloadConfig(); to your onDisable method. EDIT: Sorry, I thought you are using bukkits default config. You have to make a method yourself...
It looks like multiverse is affecting the performance too much, try removing it.
Oh okay, it seemed like it was solved. We wrote a couple of solutions, try them.
Okay, so now you can do this: if(!soldier.contains(p)){ //your code } im writing this on my phone right now, so i cant check if this works...
add this to your code: public ArrayList<Player> soldier = new ArrayList<Player>(); And, when selects the kit add this: soldier.add(p);...
I think you mean ArrayLists, not arrays, right? Anyway, could you show me your code? Would be way easier.
Okay, so, it doesnt work for you if you just add the player to an ArrayList when he buys the kit?
Wait a second, do you want to check what kits the player has in his inventory or do you want to check which of the kits he owns?
Your method with the ArrayList is the same I would use. Just check if the Kit ArrayList contains the player and display it with green, and if it...
Is this already solved?
please mark this as solved, @Aragone.
if(p.hasPermission("yourpermission")){ //your code }
Okay, my solution: making a string that catches a players UUID: String UUIDString = p.getUniqueId().toString(); making an int: int xplevel =...
Separate names with a comma.