Add /god alias for /godmode

Some of these commands really need more intuitive aliases. Therefore,
I've added another intuitive alias that matches other server mods.
This commit is contained in:
Lucas Nicodemus 2021-06-06 01:19:12 -07:00
parent f811be6cf8
commit bf403a17ec
2 changed files with 2 additions and 1 deletions

View file

@ -15,6 +15,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)
* Added `/god` as an alias for `/godmode` 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)

View file

@ -541,7 +541,7 @@ namespace TShockAPI
{
HelpText = "Gives another player a buff or debuff for an amount of time. Putting -1 for time will set it to 415 days."
});
add(new Command(Permissions.godmode, ToggleGodMode, "godmode")
add(new Command(Permissions.godmode, ToggleGodMode, "godmode", "god")
{
HelpText = "Toggles godmode on a player."
});