Hey! How would I add a cool down for when a player opens a chest. I am using an InventoryOpenEvent and it adds items but I want it to add items every 60 seconds. How would I do that? Thanks for your time, Hari
You can use Repeating tasks. http://wiki.bukkit.org/Scheduler_Programming#BukkitScheduler for reference.
Code:java Bukkit.getServer().getScheduler().runAsyncTaskLater(this, new Runnable() {@Overridepublic void run() {// do sexy stuffs here}}, 1200L); That will do stuffs every 60 seconds. Hope it helps!