Finally fixed warmup bug.

This commit is contained in:
Boos 2012-08-19 13:20:45 +02:00
parent 36eb94ebdd
commit 5c526662b6
1 changed files with 8 additions and 0 deletions

View File

@ -75,10 +75,18 @@ public class boosWarmUpManager {
Iterator<String> iter = playercommands.keySet().iterator();
while (iter.hasNext()) {
if (iter.next().startsWith(player.getName() + "@")) {
killTimer(player);
iter.remove();
}
}
}
public static void killTimer(Player player) {
for (String key : playercommands.keySet()) {
if (key.startsWith(player.getName() + "@")) {
playercommands.get(key).cancel();
}
}
}
public static boolean hasWarmUps(Player player) {
for (String key : playercommands.keySet()) {