From 2086ba46cfaaca9f5690c5f88c5479b986f9876a Mon Sep 17 00:00:00 2001 From: DDuarte Date: Sat, 30 Aug 2014 14:06:35 +0100 Subject: Scripts/Commands: Add optional reason to server shutdown/restart commands Display a "reason" ingame in the server shutdown ingame messages Fix multiple typos in the .server idlerestart/idleshutdown/restart/shutdown commands Closes #2671 --- sql/updates/world/2014_08_30_02_world_command.sql | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 sql/updates/world/2014_08_30_02_world_command.sql (limited to 'sql/updates') diff --git a/sql/updates/world/2014_08_30_02_world_command.sql b/sql/updates/world/2014_08_30_02_world_command.sql new file mode 100644 index 00000000000..f7972c39303 --- /dev/null +++ b/sql/updates/world/2014_08_30_02_world_command.sql @@ -0,0 +1,19 @@ +UPDATE `command` SET + `help` = 'Syntax: .server idlerestart #delay [#exit_code] [reason]\n\nRestart the server after #delay seconds if no active connections are present (no players). Use #exit_code or 2 as program exit code.' +WHERE + `name` = 'server idlerestart'; + +UPDATE `command` SET + `help` = 'Syntax: .server idleshutdown #delay [#exit_code] [reason]\n\nShut the server down after #delay seconds if no active connections are present (no players). Use #exit_code or 0 as program exist code.' +WHERE + `name` = 'server idleshutdown'; + +UPDATE `command` SET + `help` = 'Syntax: .server restart #delay [#exit_code] [reason]\n\nRestart the server after #delay seconds. Use #exit_code or 2 as program exist code.' +WHERE + `name` = 'server restart'; + +UPDATE `command` SET + `help` = 'Syntax: .server shutdown #delay [#exit_code] [reason]\n\nShut the server down after #delay seconds. Use #exit_code or 0 as program exit code.' +WHERE + `name` = 'server shutdown'; -- cgit v1.2.3