I was wondering if anyone could explain to me how I can use cool downs. You can also just link me to a video/website that explains it.
What I do is create a HashMap for a given player (using their UUID, not the player instance) and set its value to the current time plus the cooldown you want to apply. To check if that player is still in cooldown, check to see if the current time is greater than the cooldown you set.
I use this class I made: http://hastebin.com/noqemohuda.java You put an instance of that in a HashMap with the player's UUID as the key, and then to check if its done, just do Code: if (map.get(player.getUniqueId()).done()) { } I also made a method to quickly get the time remaining, so if the cooldown is not done, use Code: player.sendMessage(map.get(player.getUniqueId()).getTimeRemaining()); and stop the code right there.