From f811be6cf84289179603b560885607313bb368c7 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 5 Jun 2021 20:32:29 -0700 Subject: [PATCH] Add /slay alias for /kill Like all of the other server mods I've used use /slay and not /kill and it's really frustrating to type the wrong thing so I'm just going to add an alias and hope nobody else minds. --- CHANGELOG.md | 1 + TShockAPI/Commands.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 080067cb..56b3f966 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin ## Upcoming changes * Changed the world autosave message so that it no longer warns of a "potential lag spike." (@hakusaro) +* Added `/slay` as an alias for `/kill` to be more consistent with other server mods. (@hakusaro) ## TShock 4.5.4 * Fixed ridiculous typo in `GetDataHandlers` which caused TShock to read the wrong field in the packet for `usingBiomeTorches`. (@hakusaro, @Arthri) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 692eeb01..684ac97e 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -549,7 +549,7 @@ namespace TShockAPI { HelpText = "Heals a player in HP and MP." }); - add(new Command(Permissions.kill, Kill, "kill") + add(new Command(Permissions.kill, Kill, "kill", "slay") { HelpText = "Kills another player." });