Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(cooldowns.containsKey(player.getName())) {
- long secondsLeft = ((cooldowns.get(player.getName())/1000)+cooldownTime) - (System.currentTimeMillis()/1000);
- if(secondsLeft>0) {
- return;
- }
- }
- cooldowns.put(player.getName(), System.currentTimeMillis());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement