In practice I would probably set the event listening priority to MONITOR and then set a task to fill the chest on the next tick if the event isn't...
Funergy Then something is wrong with your division. Make sure you are doing double or float division to get your kdr and not integer division. You...
GreatBlitz Because all code is executed sequentially so Minecraft doesn't do this until after your code runs. Also why @TryB4's code involves...
Haha no its okay. The way the event works is like this: Minecraft begins to process the code for falling block movement Minecraft realises that...
GreatBlitz No, that checks if the falling block entity is a chest. The falling block is of the type Entity, the block in the event is of the type...
yupie_123 If you're talking about removing the cooldown when they die then you can just remove them from the map. If you mean resetting the time...
GreatBlitz 5&6: It isn't a chest yet, the event is fired before the server sets the block to a chest. A better alternative would be to wait for...
Keep in mind that during the event the chest hasn't actually been placed yet so you will need to schedule a sync task to fill it with items at...
Listen to EntityChangeBlockEvent and check whether the entity is the falling block chest that you want (hint: you can save entity ids in a list to...
Surprised that no one has mentioned String.format yet. Funergy try this: String.format("%.3f", kdr);
joeygallegos Looks like the right event, what code are you trying to run?
ResultStatic Been a while since I actually played the game but won't the invisibility potion cause the npc to emit particles for everyone to see?...
Phasesaber I wrote a plugin for this that interprets midi files and sends players note block sounds. Link to github is on the page if you need...
yupie_123 If the hashmap you have given is supposed to store the cooldown value then just use that instead. Also including the BukkitRunnable...
Here is your problem: public static int cooldown = 0; You only have one cooldown count for every task to share. Running the task multiple times...
http://wiki.bukkit.org/Plugin_Tutorial#Commands
Google is awesome some times. http://dev.bukkit.org/bukkit-plugins/custom-items/
If you're using the onCommand method, the argument array will have a length of 0 when the player has not entered any other arguments. The argument...
Ah, from the main of Essentials you can get the UserMap, from which you can getUser(player), you then have these two calls:...
You can see whether a player is banned regardless using player.isBanned(). I believe essentials ban also adds the player to the ban list so that...
Separate names with a comma.