Player.gamemode

Gets the player's gamemode.

Examples

if(player.gamemode == Gamemode.creative) {
   ...
}
if(player.adventure) {
   ...
}

Meta