diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-27 00:39:39 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-27 00:39:39 +0200 |
commit | a5cca16abe524fdbd756908ac157a0c9881463f3 (patch) | |
tree | f677b281875fe89bc4ec349330d2ae13c18b7c75 /src/World.h | |
parent | Fixed plugin count and fixed plugin loading, when settings.ini was regenerated. (diff) | |
download | cuberite-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 '')
-rw-r--r-- | src/World.h | 8 |
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 |