summaryrefslogtreecommitdiffstats
path: root/src/Server.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-11 13:13:10 +0200
committermadmaxoft <github@xoft.cz>2014-07-11 13:13:10 +0200
commitebea2b7efc1775de66e0c6b6ee66da6f9ad04422 (patch)
treef86e409e2daa70c3b00b66db0666c6e072451fad /src/Server.h
parentFixed a missing return value. (diff)
downloadcuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.gz
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.bz2
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.lz
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.xz
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.zst
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.zip
Diffstat (limited to 'src/Server.h')
-rw-r--r--src/Server.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/Server.h b/src/Server.h
index 3d76c8ccf..5227799e8 100644
--- a/src/Server.h
+++ b/src/Server.h
@@ -112,8 +112,18 @@ public: // tolua_export
cRsaPrivateKey & GetPrivateKey(void) { return m_PrivateKey; }
const AString & GetPublicKeyDER(void) const { return m_PublicKeyDER; }
+ /** Returns true if authentication has been turned on in server settings. */
bool ShouldAuthenticate(void) const { return m_ShouldAuthenticate; }
+ /** 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; }
+
+ /** Returns true if old-style playernames should be used to load data for players whose regular datafiles cannot be found.
+ This allows a seamless transition from name-based to UUID-based player storage.
+ Loaded from the settings.ini [PlayerData].LoadNamedPlayerData setting. */
+ bool ShouldLoadNamedPlayerData(void) const { return m_ShouldLoadNamedPlayerData; }
+
private:
friend class cRoot; // so cRoot can create and destroy cServer
@@ -204,6 +214,16 @@ private:
This setting is the same as the "online-mode" setting in Vanilla. */
bool m_ShouldAuthenticate;
+ /** 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. */
+ bool m_ShouldLoadOfflinePlayerData;
+
+ /** True if old-style playernames should be used to load data for players whose regular datafiles cannot be found.
+ This allows a seamless transition from name-based to UUID-based player storage.
+ Loaded from the settings.ini [PlayerData].LoadNamedPlayerData setting. */
+ bool m_ShouldLoadNamedPlayerData;
+
cServer(void);