Advertisement
mrkirby153

Untitled

May 6th, 2015
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1.         Iterator<Condition> typeIterator = typeCooldown.keySet().iterator();
  2.         while (typeIterator.hasNext()) {
  3.             Condition c = typeIterator.next();
  4.             int time = typeCooldown.get(c);
  5.             if (time - 1 > 0)
  6.                 typeCooldown.put(c, time - 1);
  7.             if (time - 1 == 0) {
  8.                 MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.GREEN + c.name() + " can now be voted on again!"));
  9.                 typeCooldown.remove(c);
  10.             }
  11.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement