@Funergy If I'm not mistaken, you won't get Concurrent modification exception when using Iterator.
Well, it's better to have it all in one place, so it doesn't get messy. @ChucknorisSR Try using switch(e.getSlot()) and check the slot instead of...
Do you register the Events in your main class?
@ChucknorisSR Could you please provide whole class where you show the GUIs?
@Konato_K Does it even matter? I supose he's not going to have like 500 people online on server, so the difference won't even matter.
@Funergy Whoops, my bad, those are suposed to be static methods. Going to fix it.
By guess is this is caused by PathfinderGoalHurtByTarget in targetSelector, which means you would need to clear it. public DTCWither(World world)...
Here is the WASD riding tutorial. He also refers to the custom entity tutorials.
This would be probably impossible, because the bat it self has a method which makes him move randomly when player is nearby. You would need to...
Well, first of, your constructor should look only like this: public DTCWither(World world) { super(world); // No need to setup goalSelector, it's...
You can use the HashMap, you just need to count them manualy. Use the entrySet() and Entry<String, String> in a foreach, check those who have the...
@Koningpeter meta.setDisplayName(""); works perfectly for me, what happens when you use it?
Here you go. if (args[0].equalsIgnoreCase("fly")){ if (args.length == 1){ Player p = (Player) sender;...
File folder = new File(Bukkit.getPluginManager().getPlugin("PlacementLimiter").getDataFolder() + File.separator + "UserData"); File f = new...
You're welcome :)
Try this then @EventHandler public void playerInteract(PlayerInteractEvent e){ Player player = e.getPlayer(); if(e.getAction() ==...
Just make a CustomPlayer class, where you have all the variables needed. Example: import java.util.ArrayList; import java.util.Iterator; import...
What does it say if you hove over it with your mouse? What version of Bukkit are you using? Alsou do you have these imports? import...
@timtower As I said, I suposed he looked into the documentation, but after I looked into it myself, I see that he didn't.
@EventHandler public void playerInteract(PlayerInteractEvent e){ Player player = e.getPlayer(); if(e.getAction() ==...
Separate names with a comma.