summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-07-11 13:13:10 +0200
committermadmaxoft <github@xoft.cz>2014-07-11 13:13:10 +0200
commitebea2b7efc1775de66e0c6b6ee66da6f9ad04422 (patch)
treef86e409e2daa70c3b00b66db0666c6e072451fad /src/Server.cpp
parentFixed a missing return value. (diff)
downloadcuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.gz
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.bz2
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.lz
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.xz
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.tar.zst
cuberite-ebea2b7efc1775de66e0c6b6ee66da6f9ad04422.zip
Diffstat (limited to '')
-rw-r--r--src/Server.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 2c695cc70..5d1e51036 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -258,6 +258,9 @@ bool cServer::InitServer(cIniFile & a_SettingsIni)
m_ServerID.resize(16, '0');
}
+ m_ShouldLoadOfflinePlayerData = a_SettingsIni.GetValueSetB("PlayerData", "LoadOfflinePlayerData", false);
+ m_ShouldLoadNamedPlayerData = a_SettingsIni.GetValueSetB("PlayerData", "LoadNamedPlayerData", true);
+
m_ClientViewDistance = a_SettingsIni.GetValueSetI("Server", "DefaultViewDistance", cClientHandle::DEFAULT_VIEW_DISTANCE);
if (m_ClientViewDistance < cClientHandle::MIN_VIEW_DISTANCE)
{