Yes, I have other events such as Click event, and they seem to work.
EDIT: There was problem with my class, somehow. It's fixed by now, but is...
public void DropEvent(PlayerDropItemEvent event)
Bukkit.broadcastMessage("test" + map);
I have this inside Map class in...
MiniDigger Yes, but let's say player has 2 maps. One is on slot 1 and one is on slot 2. The UpdateMap is activated by command. The player is...
public static void UpdateMap(Player player)
No, "/?" is a string. You can't use '==' operator to compare something to string. You have to use .equals.
I have added
player.getItemInHand().getItemMeta().getDisplayName() != null
as if statement and it doesn't throw me that error anymore....
jackson30007 Instead of p.getHealth use:
Damageable damag = Player;
After doing some tests, the line:
You can do
if(s < 45 || event.isLeftClick())
Ahh, I get the same error when right clicking. Seems like Bukkit error.
I have tried what you are doing and it doesn't crash on me.
public void shopClickInv(InventoryClickEvent event)...
I'm messing a bit with maps and I have came to an issue.
I'm trying to make, so everytime you change your held item it will update map.
Separate names with a comma.