summaryrefslogtreecommitdiffstats
path: root/source/Server.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-04 22:51:24 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-11-04 22:51:24 +0100
commite832736e0bf315585f873b43520d1d771930a1c2 (patch)
treed9fce26b198075371b04356b6f66f31da51f4493 /source/Server.h
parentProtocol 1.7: Added more client-bound packets. (diff)
downloadcuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.gz
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.bz2
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.lz
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.xz
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.tar.zst
cuberite-e832736e0bf315585f873b43520d1d771930a1c2.zip
Diffstat (limited to 'source/Server.h')
-rw-r--r--source/Server.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/Server.h b/source/Server.h
index b4fe81d8f..6742153ac 100644
--- a/source/Server.h
+++ b/source/Server.h
@@ -46,6 +46,9 @@ public: // tolua_export
int GetNumPlayers(void);
void SetMaxPlayers(int a_MaxPlayers) { m_MaxPlayers = a_MaxPlayers; }
+ // Hardcore mode or not:
+ bool IsHardcore(void) const {return m_bIsHardcore; }
+
// tolua_end
bool Start(void);
@@ -161,6 +164,7 @@ private:
AString m_Description;
int m_MaxPlayers;
+ bool m_bIsHardcore;
cTickThread m_TickThread;
cEvent m_RestartEvent;