diff options
author | mathiascode <mathiascode@users.noreply.github.com> | 2017-05-19 16:09:01 +0200 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2017-05-19 19:51:03 +0200 |
commit | 8cf48f7682a2f75363fc4b4af8f9bfba028818c0 (patch) | |
tree | 6001f58c0a3f40e05c7d2588197d24930a83052b /src/Server.h | |
parent | Use FastWriter instead of StyledWriter (diff) | |
download | cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.gz cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.bz2 cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.lz cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.xz cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.tar.zst cuberite-8cf48f7682a2f75363fc4b4af8f9bfba028818c0.zip |
Diffstat (limited to 'src/Server.h')
-rw-r--r-- | src/Server.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Server.h b/src/Server.h index 74f9581ae..bb9b7f511 100644 --- a/src/Server.h +++ b/src/Server.h @@ -127,6 +127,9 @@ public: /** Returns true if authentication has been turned on in server settings. */ bool ShouldAuthenticate(void) const { return m_ShouldAuthenticate; } // tolua_export + /** Returns true if limit for number of block changes per tick by a player has been turned on in server settings. */ + bool ShouldLimitPlayerBlockChanges(void) const { return m_ShouldLimitPlayerBlockChanges; } + /** Returns true if offline UUIDs should be used to load data for players whose normal UUIDs cannot be found. Loaded from the settings.ini [PlayerData].LoadOfflinePlayerData setting. */ bool ShouldLoadOfflinePlayerData(void) const { return m_ShouldLoadOfflinePlayerData; } @@ -224,6 +227,9 @@ private: This setting is the same as the "online-mode" setting in Vanilla. */ bool m_ShouldAuthenticate; + /** True if limit for number of block changes per tick by a player should be enabled. */ + bool m_ShouldLimitPlayerBlockChanges; + /** True if offline UUIDs should be used to load data for players whose normal UUIDs cannot be found. This allows transitions from an offline (no-auth) server to an online one. Loaded from the settings.ini [PlayerData].LoadOfflinePlayerData setting. */ |