@KingFaris11 It is completely fine to store a Player reference, as long as you remove it when the player leaves the server.
Take a look at Word.getTime(). That will return the number of ticks passed. A Minecraft day is 24 Minecraft hours long, a Minecraft hour 1.000...
@Comphenix Even though this thread is quite old now, I got a question: How would you go for changing NBT-data on blocks using your class? It is...
Caprei You are missing an @EventHandler.
I think the problem is in IconMenu line 45, you want to register the events only after the plugin is enabled. So move this line to onEnable():...
You want your ArrayList to be declared outside of the click() method so it will still persist even if the event is completed. Also, for your...
Hello, I have set up my Eclipse to run a Bukkit server as this tutorial shows:...
Isaksson You can use PluginManager#getPlugin("PermissionsBukkit") to get the plugin instance. It has a method getGroup(String groupName) which you...
Wede333 Use Block#getRelative (int modX, int modY, int modZ). You may also use BlockFaces which are a wrapper for the modX, modY and modZ.
david123718 OK, here is an example with the UUID of Notch: * Add Notchs UUID ("069a79f4-44e9-4726-a5be-fca90e38aaf5") to a list * Cancel the...
Hello, is there a way of making any item consumable? So, for example, I want players to be able to eat wheat. I know I can use...
_LB BillyGalbreath Thanks guys, I got it now! Happy coding :-)
_LB If I have some custom event, for example "PlayerMaxHealthChangeEvent" with a method setNewMaxHealth(double). I want all handlers to be able to...
_LB Thanks for the answer :-) How am I supposed to "execute" custom events? Do you just use @EventHandler(priority = EventPriority.MONITOR) or...
Hello, I got some questions about events that I could not solve using Google / the source code of Bukkit - I hope you guys can help me :-) The...
Separate names with a comma.