Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 79:75 */ kit = Kit.createKit(this.plugin, args[0].toLowerCase(), name);
- /* 80:76 */ kit.apply(player);
- /* 81:77 */ data.setSelected(kit);
- /* 82:78 */ final UUID uuid = player.getUniqueId();
- /* 83:79 */ Kits.inCooldown.add(uuid);
- /* 84:80 */ Bukkit.getScheduler().scheduleSyncDelayedTask(this.plugin,
- /* 85:81 */ new Runnable()
- /* 86: */ {
- /* 87: */ public void run()
- /* 88: */ {
- /* 89:84 */ if (Kits.inCooldown.contains(uuid)) {
- /* 90:85 */ Kits.inCooldown.remove(uuid);
- /* 91: */ }
- /* 92: */ }
- /* 93:87 */ }, 1200L);
- /* 94:88 */ player.sendMessage(ChatColor.GRAY + "You have selected the kit: " +
- /* 95:89 */ args[0]);
- /* 96: */ }
- /* 97: */ else
- /* 98: */ {
- /* 99:91 */ kit.unregister();
- /* :0:92 */ player.sendMessage(ChatColor.RED + "Cooldown in progress...");
- /* :1: */ }
- /* :2:94 */ return true;
- /* :3: */ }
- /* :4: */ }
Advertisement
Add Comment
Please, Sign In to add comment