From 78b6d54bf86c892827fa0a470375ba50318a0bd0 Mon Sep 17 00:00:00 2001 From: sweetgiorni Date: Tue, 3 Jan 2017 12:18:53 -0800 Subject: [PATCH] Api Documentation Added API documentation for GetShutdownMessage. Style fix in Root.cpp --- Server/Plugins/APIDump/APIDesc.lua | 10 ++++++++++ src/Root.cpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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?