summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-09-17 21:30:11 +0200
committerMattes D <github@xoft.cz>2014-09-17 21:30:11 +0200
commit0625556c372462f48f13482866c0c12a6dcb51e2 (patch)
treed77b0dc3845b99911a8924449ef38d4cc47fcddf /src/World.h
parentAdded an explicit setting for allowing BungeeCord handshake. (diff)
parentImplementing Spectator Mode (diff)
downloadcuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.gz
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.bz2
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.lz
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.xz
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.tar.zst
cuberite-0625556c372462f48f13482866c0c12a6dcb51e2.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h
index 0c57e6611..8b40037af 100644
--- a/src/World.h
+++ b/src/World.h
@@ -188,6 +188,9 @@ public:
/** Returns true if the world is in Adventure mode */
bool IsGameModeAdventure(void) const { return (m_GameMode == gmAdventure); }
+ /** Returns true if the world is in Spectator mode */
+ bool IsGameModeSpectator(void) const { return (m_GameMode == gmSpectator); }
+
bool IsPVPEnabled(void) const { return m_bEnabledPVP; }
bool IsDeepSnowEnabled(void) const { return m_IsDeepSnowEnabled; }