Hello, do anyone know how to add a cooldown to a bungeecord plugin like it says: You cannot use this command for another (seconds left) seconds?
The following should work: Code (Text): //Creating variable boolean isOnCooldown; //setting variable in your commands method on true and ask // if isOnCooldown is false your command should work new BukkitRunnable() { int cooldown = <seconds>; public void run() { if(cooldown <= 0) { isOnCooldown = false; cancel; } cooldown--; } }.runTaskAsyncronously(<Your Instance Method>, <Time in seconds> * 20);