@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 =...
Sorry, my mistake. I mean that INSIDE the config, I want a line with the players name, and the next line should be the players level.
Wouldnât using bukkits default config getting it for all of the players? I would like to save it with the players name, is there a possibility...
Hey mate! You have to create the config.yml yourself. Have a look at https://bukkit.org/threads/itemstacks-in-configuration-files.272215/! have...
hey bukkit community! I want to create a simple level system for players. For this, I want to use a config. So, I want to assign the Level...
So I would have to declare it a second time in the onJoin method?
Separate names with a comma.