Gets the player's gamemode.
if(player.gamemode == Gamemode.creative) { ... } if(player.adventure) { ... }
See Implementation
Gets the player's gamemode.