Use ItemStack,
You can only change that when its in the inventory of the play itself, and not in the creative inventory.
Found out already, thanx btw. @EventHandler public void onPLayerJoinEvent(PlayerJoinEvent event) { Player player = event.getPlayer(); if...
But I need to check if someon has the permission, but Opped players may not count as true.
@EventHandler public void onPlayerJoinEvent(PlayerJoinEvent event) { Player player = event.getPlayer(); if...
I wan't to make a event cooldown, just a code that counts from 5 to 0 (in seconds) while called by the event, and if the event is getting...
So what did I do wrong? I am new to bukkit developing so....
The console error: All text showedup after I broke a block. [img] The_Doctor_123 I tried it with and without permission and also with and...
The_Doctor_123 I have done that already before I started to code. [IMG] [IMG] EDIT by Moderator: merged posts, please use the edit button...
But I did, event.setCancelled(true); didn't work, but it did send the sendMessage that is in the same brackets.
How can I respawn blocks after breaking them? I just need the code to cancel it and respawn the block.
Clearly scoreboard.
Check this: http://jd.bukkit.org/rb/apidocs/org/bukkit/entity/Zombie.html
implements Listener After the javaplugin part
Here is the original code for command: public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){...
Separate names with a comma.