From 28cd87cea048273f3563deae3d9861a99de3a64a Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 23 Oct 2016 04:38:25 -0600 Subject: [PATCH] Add 'stop' command alias for 'off' and 'exit' --- CHANGELOG.md | 1 + TShockAPI/Commands.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c48a472..fa98e0ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Removed TShock color parsing from MOTDs (@WhiteXZ). * Fixed butterfly statues spawning catchable butterflies (@DogooFalchion). * Implemented some missing balance changes lost in prior version patches (@DogooFalchion). +* Added alias for server shutdown command: stop (@nicatronTg). ## TShock 4.3.20 * Security improvement: The auth system is now automatically disabled if a superadmin exists in the database (@Enerdy). diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index f317a1c1..df3c43b5 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -330,11 +330,11 @@ namespace TShockAPI { HelpText = "Checks for TShock updates." }); - add(new Command(Permissions.maintenance, Off, "off", "exit") + add(new Command(Permissions.maintenance, Off, "off", "exit", "stop") { HelpText = "Shuts down the server while saving." }); - add(new Command(Permissions.maintenance, OffNoSave, "off-nosave", "exit-nosave") + add(new Command(Permissions.maintenance, OffNoSave, "off-nosave", "exit-nosave", "stop-nosave") { HelpText = "Shuts down the server without saving." });