mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-23 02:55:11 +01:00
Finally fixed warmup bug.
This commit is contained in:
parent
36eb94ebdd
commit
5c526662b6
@ -75,10 +75,18 @@ public class boosWarmUpManager {
|
|||||||
Iterator<String> iter = playercommands.keySet().iterator();
|
Iterator<String> iter = playercommands.keySet().iterator();
|
||||||
while (iter.hasNext()) {
|
while (iter.hasNext()) {
|
||||||
if (iter.next().startsWith(player.getName() + "@")) {
|
if (iter.next().startsWith(player.getName() + "@")) {
|
||||||
|
killTimer(player);
|
||||||
iter.remove();
|
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) {
|
public static boolean hasWarmUps(Player player) {
|
||||||
for (String key : playercommands.keySet()) {
|
for (String key : playercommands.keySet()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user