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.
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....
int num = 123;
Wouldn't any of those get called? As num...
Try turning player into Damageable.
Damageable damag = player;
then instead of player you would use damag. I think for setHealth you still use...
Isn't there option to add someone on skype via email? As in, instead of username.
Anyway, PMed you the username as I would not rather...
firstname.lastname@example.org (Add me via email)
Greatly appreciated :D
That works great! used event.getAmount() for regen. All works perfectly now! Thank you!
Separate names with a comma.