mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-01 08:20:32 +01:00
stuck on logout fix
This commit is contained in:
parent
c8d6bd3d31
commit
dc6dd39c39
@ -4,6 +4,8 @@ import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import util.boosChat;
|
||||
|
||||
public class boosWarmUpTimer extends TimerTask {
|
||||
|
||||
boosCoolDown bCoolDown;
|
||||
@ -29,6 +31,10 @@ public class boosWarmUpTimer extends TimerTask {
|
||||
boosWarmUpManager.removeWarmUpProcess(this.player.getName() + "@"
|
||||
+ pre);
|
||||
player.chat(pre + message);
|
||||
} else if (!player.isOnline() && boosWarmUpManager.hasWarmUps(player)){
|
||||
boosChat.sendMessageToPlayer(player,
|
||||
boosConfigManager.getCancelWarmupOnSprintMessage());
|
||||
boosWarmUpManager.cancelWarmUps(player);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user