summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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?