summaryrefslogtreecommitdiffstats
path: root/source/Server.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-11-05 22:24:23 +0100
committerMattes D <github@xoft.cz>2013-11-05 22:24:23 +0100
commit12eeb3f6c88f54b77363923fcff2bd4ce53ff07f (patch)
tree3ed83d1132a2b1a8b6f9e36a7d6f3a527d258992 /source/Server.cpp
parentClarified cBlockHandler::ConvertToPickups() dox. (diff)
parentImplemented suggestions (diff)
downloadcuberite-12eeb3f6c88f54b77363923fcff2bd4ce53ff07f.tar
cuberite-12eeb3f6c88f54b77363923fcff2bd4ce53ff07f.tar.gz
cuberite-12eeb3f6c88f54b77363923fcff2bd4ce53ff07f.tar.bz2
cuberite-12eeb3f6c88f54b77363923fcff2bd4ce53ff07f.tar.lz
cuberite-12eeb3f6c88f54b77363923fcff2bd4ce53ff07f.tar.xz
cuberite-12eeb3f6c88f54b77363923fcff2bd4ce53ff07f.tar.zst
cuberite-12eeb3f6c88f54b77363923fcff2bd4ce53ff07f.zip
Diffstat (limited to 'source/Server.cpp')
-rw-r--r--source/Server.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/source/Server.cpp b/source/Server.cpp
index 879bfae5a..75ce35cb7 100644
--- a/source/Server.cpp
+++ b/source/Server.cpp
@@ -195,8 +195,9 @@ void cServer::PlayerDestroying(const cPlayer * a_Player)
bool cServer::InitServer(cIniFile & a_SettingsIni)
{
- m_Description = a_SettingsIni.GetValue ("Server", "Description", "MCServer! - In C++!").c_str();
- m_MaxPlayers = a_SettingsIni.GetValueI("Server", "MaxPlayers", 100);
+ m_Description = a_SettingsIni.GetValueSet("Server", "Description", "MCServer - in C++!").c_str();
+ m_MaxPlayers = a_SettingsIni.GetValueSetI("Server", "MaxPlayers", 100);
+ m_bIsHardcore = a_SettingsIni.GetValueSetB("Server", "HardcoreEnabled", false);
m_PlayerCount = 0;
m_PlayerCountDiff = 0;
@@ -320,7 +321,7 @@ void cServer::OnConnectionAccepted(cSocket & a_Socket)
return;
}
- LOG("Client \"%s\" connected!", ClientIP.c_str());
+ LOGD("Client \"%s\" connected!", ClientIP.c_str());
cClientHandle * NewHandle = new cClientHandle(&a_Socket, m_ClientViewDistance);
if (!m_SocketThreads.AddClient(a_Socket, NewHandle))
@@ -507,7 +508,7 @@ void cServer::BindBuiltInConsoleCommands(void)
PlgMgr->BindConsoleCommand("chunkstats", NULL, " - Displays detailed chunk memory statistics");
#if defined(_MSC_VER) && defined(_DEBUG) && defined(ENABLE_LEAK_FINDER)
PlgMgr->BindConsoleCommand("dumpmem", NULL, " - Dumps all used memory blocks together with their callstacks into memdump.xml");
- #endif
+ #endif
}