Advertisement
XploreLP

Untitled

Sep 30th, 2015
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. if(cooldowns.containsKey(player.getName())) {
  2. long secondsLeft = ((cooldowns.get(player.getName())/1000)+cooldownTime) - (System.currentTimeMillis()/1000);
  3. if(secondsLeft>0) {
  4. return;
  5. }
  6. }
  7. cooldowns.put(player.getName(), System.currentTimeMillis());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement