summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-17 20:55:46 +0200
committermadmaxoft <github@xoft.cz>2014-09-17 20:56:33 +0200
commit16e9deba8d61abad80ef8a1935db1207fd6c3a68 (patch)
tree299f12bda3da2c0931d9ca70103668e8c580cf3f /src/Server.cpp
parentFixed wrong url in the debuggers plugin (diff)
downloadcuberite-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.cpp')
-rw-r--r--src/Server.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 069e2a169..969ffd693 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -259,6 +259,13 @@ bool cServer::InitServer(cIniFile & a_SettingsIni)
m_ServerID = sid.str();
m_ServerID.resize(16, '0');
}
+
+ // Check if both BungeeCord and online mode are on, if so, warn the admin:
+ m_ShouldAllowBungeeCord = a_SettingsIni.GetValueSetB("Authentication", "AllowBungeeCord", false);
+ if (m_ShouldAllowBungeeCord && m_ShouldAuthenticate)
+ {
+ LOGWARNING("WARNING: BungeeCord is allowed and server set to online mode. This is unsafe and will not work properly. Disable either authentication or BungeeCord in settings.ini.");
+ }
m_ShouldLoadOfflinePlayerData = a_SettingsIni.GetValueSetB("PlayerData", "LoadOfflinePlayerData", false);
m_ShouldLoadNamedPlayerData = a_SettingsIni.GetValueSetB("PlayerData", "LoadNamedPlayerData", true);