diff options
author | madmaxoft <github@xoft.cz> | 2014-09-17 20:55:46 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-09-17 20:56:33 +0200 |
commit | 16e9deba8d61abad80ef8a1935db1207fd6c3a68 (patch) | |
tree | 299f12bda3da2c0931d9ca70103668e8c580cf3f /src/Server.h | |
parent | Fixed wrong url in the debuggers plugin (diff) | |
download | cuberite-16e9deba8d61abad80ef8a1935db1207fd6c3a68.tar cuberite-16e9deba8d61abad80ef8a1935db1207fd6c3a68.tar.gz cuberite-16e9deba8d61abad80ef8a1935db1207fd6c3a68.tar.bz2 cuberite-16e9deba8d61abad80ef8a1935db1207fd6c3a68.tar.lz cuberite-16e9deba8d61abad80ef8a1935db1207fd6c3a68.tar.xz cuberite-16e9deba8d61abad80ef8a1935db1207fd6c3a68.tar.zst cuberite-16e9deba8d61abad80ef8a1935db1207fd6c3a68.zip |
Diffstat (limited to 'src/Server.h')
-rw-r--r-- | src/Server.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Server.h b/src/Server.h index f20e6932f..6d659fa40 100644 --- a/src/Server.h +++ b/src/Server.h @@ -131,6 +131,11 @@ public: // tolua_export Loaded from the settings.ini [PlayerData].LoadNamedPlayerData setting. */ bool ShouldLoadNamedPlayerData(void) const { return m_ShouldLoadNamedPlayerData; } + /** Returns true if BungeeCord logins (that specify the player's UUID) are allowed. + Read from settings, admins should set this to true only when they chain to BungeeCord, + it makes the server vulnerable to identity theft through direct connections. */ + bool ShouldAllowBungeeCord(void) const { return m_ShouldAllowBungeeCord; } + private: friend class cRoot; // so cRoot can create and destroy cServer @@ -230,6 +235,9 @@ private: This allows a seamless transition from name-based to UUID-based player storage. Loaded from the settings.ini [PlayerData].LoadNamedPlayerData setting. */ bool m_ShouldLoadNamedPlayerData; + + /** True if BungeeCord handshake packets (with player UUID) should be accepted. */ + bool m_ShouldAllowBungeeCord; cServer(void); |