suggested name: glow grenade Category: MISC description: when you right click or left click gun powder it gets thrown 7 blocks away, then after 2 seconds the gunpowder on the floor is gone and causes the glow effect to any player in the radius of 6. Just like a grenade but doesn't explode it gives a effect No commands. No permissions.
@CTRL 1. Thrown like a snowball, most likely. 2. 1.9 feature, you have a glowing white (or team-colored) outline around you that can be seen through blocks.
Done: http://dev.bukkit.org/bukkit-plugins/glow-grenade/ (currently waiting approval) If you need anything changed let me know. Source: https://bitbucket.org/BumbleBeee_/glow-grenade/src
Do not use Thread.sleep();. That essentially stops the whole server and prevents the server from running. Instead use a AsyncDelayedTask from Bukkit#Schuduler Oh and check if the player's inventory has gunpowder, if not, then just stop the event, that way the server doesn't have run this code every time a player places a block, uses a chest, etc.
Thread.sleep stops the server completely and waits for the timer to run out before it starts the server again, so players can't do anything until the sleep timer expires.