summaryrefslogtreecommitdiffstats
path: root/src/Entities/Player.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/Entities/Player.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 '')
-rw-r--r--src/Entities/Player.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Entities/Player.h b/src/Entities/Player.h
index 9821cc6d9..d64dd6b99 100644
--- a/src/Entities/Player.h
+++ b/src/Entities/Player.h
@@ -171,6 +171,9 @@ public:
/** Returns true if the player is in Adventure mode, either explicitly, or by inheriting from current world */
bool IsGameModeAdventure(void) const;
+ /** Returns true if the player is in Spectator mode, either explicitly, or by inheriting from current world */
+ bool IsGameModeSpectator(void) const;
+
AString GetIP(void) const { return m_IP; } // tolua_export
/** Returns the associated team, NULL if none */