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...
@EventHandler public void DropEvent(PlayerDropItemEvent event) { Bukkit.broadcastMessage("Test");...
MiniDigger Bukkit.broadcastMessage("test" + map); if(!redrawNeeded) return; 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...
MiniDigger public static void UpdateMap(Player player) { Map.setRedrawNeed(); //player.sendMessage("Before IF"); if...
No, "/?" is a string. You can't use '==' operator to compare something to string. You have to use .equals.
MiniDigger I have added player.getItemInHand().getItemMeta().getDisplayName() != null as if statement and it doesn't throw me that error anymore....
bump
jackson30007 Instead of p.getHealth use: Damageable damag = Player; damag.getHealth();
After doing some tests, the line: p.closeInventory(); causes that. You can do if(s < 45 || event.isLeftClick()) p.closeInventory();...
Ahh, I get the same error when right clicking. Seems like Bukkit error.
@kreashenz I have tried what you are doing and it doesn't crash on me. Event: @EventHandler 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. However,...
Yes you can
I don't see how your string examples uses strings in case. It uses case 1-12, then modifies the variable monthString accordingly to the case....
Separate names with a comma.