set player gamemode on respawn in Game

This commit is contained in:
ArcticZeroo 2018-01-09 16:33:25 -05:00 committed by Alexander Meech
parent 6019104146
commit 3bd986e101

View File

@ -1291,6 +1291,9 @@ public abstract class Game extends ListenerComponent implements Lifetimed
PlayerGameRespawnEvent event = new PlayerGameRespawnEvent(this, player);
UtilServer.getServer().getPluginManager().callEvent(event);
// Re-set player gamemode
player.setGameMode(PlayerGameMode);
// Re-Give Kit
Manager.runSyncLater(() -> GetKit(player).ApplyKit(player), 0);
}