From a2a9341c24609e45e563427eecc1a927ee2b657a Mon Sep 17 00:00:00 2001 From: Alexander Harkness Date: Thu, 21 Jul 2016 12:00:30 +0100 Subject: Tab completion across worlds (#3270) Fixes #2563. --- src/Server.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Server.h') 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; -- cgit v1.2.3