Player.adventure

Gets the player's gamemode.

  1. bool adventure [@property getter]
    class Player
    final pure nothrow @property @safe @nogc
    bool
    adventure
    ()
  2. bool adventure [@property setter]

Examples

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

Meta