Kick players who fail to respawn
This commit is contained in:
parent
8f611cd4e6
commit
262b813a11
|
@ -88,7 +88,8 @@ public abstract class State {
|
|||
if(maxHealth > 0) {
|
||||
bukkit.setHealth(maxHealth);
|
||||
} else {
|
||||
smm.getMatch().getMap().getLogger().severe("Failed to set max health to a non-zero value, custom death screen will fail");
|
||||
bukkit.kickPlayer("An internal error has occurred! If this continues, contact a staff member");
|
||||
smm.getMatch().getMap().getLogger().severe("Failed to set max health to a non-zero value, custom death screen will fail for " + bukkit.getName());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue