diff options
| author | DDuarte <dnpd.dd@gmail.com> | 2014-08-30 14:06:35 +0100 |
|---|---|---|
| committer | DDuarte <dnpd.dd@gmail.com> | 2014-08-30 14:07:52 +0100 |
| commit | 2086ba46cfaaca9f5690c5f88c5479b986f9876a (patch) | |
| tree | e7832f274431f138e188defdbafde885d7570211 /sql | |
| parent | 6a8e935e317519fb88f2d253eb96acf29b83c57f (diff) | |
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
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/updates/world/2014_08_30_02_world_command.sql | 19 |
1 files changed, 19 insertions, 0 deletions
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'; |
