set player gamemode on respawn in Game
This commit is contained in:
parent
6019104146
commit
3bd986e101
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user