summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsweetgiorni <sweet.giorni@gmail.com>2017-01-03 21:18:53 +0100
committersweetgiorni <sweet.giorni@gmail.com>2017-01-03 21:18:53 +0100
commit78b6d54bf86c892827fa0a470375ba50318a0bd0 (patch)
tree54c4e89c977233218aa9af1d4b2abd2e4752888f
parentCustom Disconnect Message (diff)
downloadcuberite-78b6d54bf86c892827fa0a470375ba50318a0bd0.tar
cuberite-78b6d54bf86c892827fa0a470375ba50318a0bd0.tar.gz
cuberite-78b6d54bf86c892827fa0a470375ba50318a0bd0.tar.bz2
cuberite-78b6d54bf86c892827fa0a470375ba50318a0bd0.tar.lz
cuberite-78b6d54bf86c892827fa0a470375ba50318a0bd0.tar.xz
cuberite-78b6d54bf86c892827fa0a470375ba50318a0bd0.tar.zst
cuberite-78b6d54bf86c892827fa0a470375ba50318a0bd0.zip
-rw-r--r--Server/Plugins/APIDump/APIDesc.lua10
-rw-r--r--src/Root.cpp2
2 files changed, 11 insertions, 1 deletions
diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua
index d4a814cb9..2bf9f83b0 100644
--- a/Server/Plugins/APIDump/APIDesc.lua
+++ b/Server/Plugins/APIDump/APIDesc.lua
@@ -13002,6 +13002,16 @@ end
},
Notes = "Returns the server description set in the settings.ini.",
},
+ GetShutdownMessage =
+ {
+ Returns =
+ {
+ {
+ Type = "string",
+ },
+ },
+ Notes = "Returns the shutdown message set in the settings.ini.",
+ },
GetMaxPlayers =
{
Returns =
diff --git a/src/Root.cpp b/src/Root.cpp
index 90e5cb9db..a5567dc9b 100644
--- a/src/Root.cpp
+++ b/src/Root.cpp
@@ -343,7 +343,7 @@ void cRoot::StopServer()
}
public:
cPlayerCallback(AString a_ShutdownMessage) : m_ShutdownMessage(a_ShutdownMessage) {}
- }PlayerCallback((m_Server->GetShutdownMessage()));
+ } PlayerCallback((m_Server->GetShutdownMessage()));
cRoot::Get()->ForEachPlayer(PlayerCallback);
// What's a better way to do this?