Kick players who fail to respawn

This commit is contained in:
Austin Mayes 2019-05-31 16:54:28 -05:00
parent 8f611cd4e6
commit 262b813a11
No known key found for this signature in database
GPG Key ID: 72C78ABE045D34F6
1 changed files with 2 additions and 1 deletions

View File

@ -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());
}
}