summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-07-27 00:39:39 +0200
committerHowaner <franzi.moos@googlemail.com>2014-07-27 00:39:39 +0200
commita5cca16abe524fdbd756908ac157a0c9881463f3 (patch)
treef677b281875fe89bc4ec349330d2ae13c18b7c75 /src/World.h
parentFixed plugin count and fixed plugin loading, when settings.ini was regenerated. (diff)
downloadcuberite-a5cca16abe524fdbd756908ac157a0c9881463f3.tar
cuberite-a5cca16abe524fdbd756908ac157a0c9881463f3.tar.gz
cuberite-a5cca16abe524fdbd756908ac157a0c9881463f3.tar.bz2
cuberite-a5cca16abe524fdbd756908ac157a0c9881463f3.tar.lz
cuberite-a5cca16abe524fdbd756908ac157a0c9881463f3.tar.xz
cuberite-a5cca16abe524fdbd756908ac157a0c9881463f3.tar.zst
cuberite-a5cca16abe524fdbd756908ac157a0c9881463f3.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/World.h b/src/World.h
index 9658178ae..cb77361f6 100644
--- a/src/World.h
+++ b/src/World.h
@@ -622,7 +622,10 @@ public:
bool ShouldUseChatPrefixes(void) const { return m_bUseChatPrefixes; }
void SetShouldUseChatPrefixes(bool a_Flag) { m_bUseChatPrefixes = a_Flag; }
-
+
+ bool ShouldBroadcastDeathMessages(void) const { return m_BroadcastDeathMessages; }
+ bool ShouldBroadcastAchievementMessages(void) const { return m_BroadcastAchievementMessages; }
+
// tolua_end
/** Saves all chunks immediately. Dangerous interface, may deadlock, use QueueSaveAllChunks() instead */
@@ -842,6 +845,9 @@ private:
double m_SpawnY;
double m_SpawnZ;
+ bool m_BroadcastDeathMessages;
+ bool m_BroadcastAchievementMessages;
+
double m_WorldAgeSecs; // World age, in seconds. Is only incremented, cannot be set by plugins.
double m_TimeOfDaySecs; // Time of day in seconds. Can be adjusted. Is wrapped to zero each day.
Int64 m_WorldAge; // World age in ticks, calculated off of m_WorldAgeSecs