summaryrefslogtreecommitdiffstats
path: root/src/Server.h
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2016-07-21 13:00:30 +0200
committerMattes D <github@xoft.cz>2016-07-21 13:00:30 +0200
commita2a9341c24609e45e563427eecc1a927ee2b657a (patch)
tree47bb2d183d541d5f9611260c12eb3f002a07d6f9 /src/Server.h
parentCMake: Fix system Lua usage for non-5.1 versions. (#3271) (diff)
downloadcuberite-a2a9341c24609e45e563427eecc1a927ee2b657a.tar
cuberite-a2a9341c24609e45e563427eecc1a927ee2b657a.tar.gz
cuberite-a2a9341c24609e45e563427eecc1a927ee2b657a.tar.bz2
cuberite-a2a9341c24609e45e563427eecc1a927ee2b657a.tar.lz
cuberite-a2a9341c24609e45e563427eecc1a927ee2b657a.tar.xz
cuberite-a2a9341c24609e45e563427eecc1a927ee2b657a.tar.zst
cuberite-a2a9341c24609e45e563427eecc1a927ee2b657a.zip
Diffstat (limited to '')
-rw-r--r--src/Server.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Server.h b/src/Server.h
index b6c8bfe1f..600e7ca97 100644
--- a/src/Server.h
+++ b/src/Server.h
@@ -139,6 +139,10 @@ public:
it makes the server vulnerable to identity theft through direct connections. */
bool ShouldAllowBungeeCord(void) const { return m_ShouldAllowBungeeCord; }
+ /** Returns true if usernames should be completed across worlds. This is read
+ from the settings. */
+ bool ShouldAllowMultiWorldTabCompletion(void) const { return m_ShouldAllowMultiWorldTabCompletion; }
+
private:
friend class cRoot; // so cRoot can create and destroy cServer
@@ -230,6 +234,9 @@ private:
/** True if BungeeCord handshake packets (with player UUID) should be accepted. */
bool m_ShouldAllowBungeeCord;
+ /** True if usernames should be completed across worlds. */
+ bool m_ShouldAllowMultiWorldTabCompletion;
+
/** The list of ports on which the server should listen for connections.
Initialized in InitServer(), used in Start(). */
AStringVector m_Ports;