summaryrefslogtreecommitdiffstats
path: root/src/Root.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-17 13:57:18 +0200
committerMattes D <github@xoft.cz>2014-10-17 13:57:18 +0200
commit687752241f97599c932ab30da449d7b9dec632c4 (patch)
tree253843f8f45b7e3719324ed72dd31977984d663f /src/Root.cpp
parentLuaChunkStay: Fixed a crash on unused callback. (diff)
downloadcuberite-687752241f97599c932ab30da449d7b9dec632c4.tar
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.gz
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.bz2
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.lz
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.xz
cuberite-687752241f97599c932ab30da449d7b9dec632c4.tar.zst
cuberite-687752241f97599c932ab30da449d7b9dec632c4.zip
Diffstat (limited to '')
-rw-r--r--src/Root.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Root.cpp b/src/Root.cpp
index aa3d43cba..2d08c2c70 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -142,8 +142,9 @@ void cRoot::Start(void)
}
LOG("Starting server...");
- m_MojangAPI.Start(IniFile); // Mojang API needs to be started before plugins, so that plugins may use it for DB upgrades on server init
- if (!m_Server->InitServer(IniFile))
+ bool ShouldAuthenticate = IniFile.GetValueSetB("Authentication", "Authenticate", true);
+ m_MojangAPI.Start(IniFile, ShouldAuthenticate); // Mojang API needs to be started before plugins, so that plugins may use it for DB upgrades on server init
+ if (!m_Server->InitServer(IniFile, ShouldAuthenticate))
{
IniFile.WriteFile("settings.ini");
LOGERROR("Failure starting server, aborting...");