BaconIsBest

cooldown

Apr 27th, 2014
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. /* 79:75 */ kit = Kit.createKit(this.plugin, args[0].toLowerCase(), name);
  2. /* 80:76 */ kit.apply(player);
  3. /* 81:77 */ data.setSelected(kit);
  4. /* 82:78 */ final UUID uuid = player.getUniqueId();
  5. /* 83:79 */ Kits.inCooldown.add(uuid);
  6. /* 84:80 */ Bukkit.getScheduler().scheduleSyncDelayedTask(this.plugin,
  7. /* 85:81 */ new Runnable()
  8. /* 86: */ {
  9. /* 87: */ public void run()
  10. /* 88: */ {
  11. /* 89:84 */ if (Kits.inCooldown.contains(uuid)) {
  12. /* 90:85 */ Kits.inCooldown.remove(uuid);
  13. /* 91: */ }
  14. /* 92: */ }
  15. /* 93:87 */ }, 1200L);
  16. /* 94:88 */ player.sendMessage(ChatColor.GRAY + "You have selected the kit: " +
  17. /* 95:89 */ args[0]);
  18. /* 96: */ }
  19. /* 97: */ else
  20. /* 98: */ {
  21. /* 99:91 */ kit.unregister();
  22. /* :0:92 */ player.sendMessage(ChatColor.RED + "Cooldown in progress...");
  23. /* :1: */ }
  24. /* :2:94 */ return true;
  25. /* :3: */ }
  26. /* :4: */ }
Advertisement
Add Comment
Please, Sign In to add comment