summaryrefslogtreecommitdiffstats
path: root/src/World.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-30 10:06:18 +0200
committermadmaxoft <github@xoft.cz>2014-07-30 10:06:18 +0200
commitf095e770b84178ad45cbf3ba484b6ee18a239cb7 (patch)
tree70cbfedf25e0abc83655471a8ce44fee99b878f6 /src/World.h
parentFixed "Dependency" typos (diff)
parentChange Group->SetColor() again. (diff)
downloadcuberite-f095e770b84178ad45cbf3ba484b6ee18a239cb7.tar
cuberite-f095e770b84178ad45cbf3ba484b6ee18a239cb7.tar.gz
cuberite-f095e770b84178ad45cbf3ba484b6ee18a239cb7.tar.bz2
cuberite-f095e770b84178ad45cbf3ba484b6ee18a239cb7.tar.lz
cuberite-f095e770b84178ad45cbf3ba484b6ee18a239cb7.tar.xz
cuberite-f095e770b84178ad45cbf3ba484b6ee18a239cb7.tar.zst
cuberite-f095e770b84178ad45cbf3ba484b6ee18a239cb7.zip
Diffstat (limited to 'src/World.h')
-rw-r--r--src/World.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/World.h b/src/World.h
index 6649c4163..4d0ccf2dd 100644
--- a/src/World.h
+++ b/src/World.h
@@ -621,6 +621,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; }
+
+
AString GetNetherWorldName(void) const { return m_NetherWorldName; }
void SetNetherWorldName(const AString & a_Name) { m_NetherWorldName = a_Name; }
@@ -856,6 +860,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