Provide warning message on invalid group command
This fixes #1742 where users could run group commands that didn't exist and the server would silently fail rather than giving an error.
This commit is contained in:
parent
86ec030488
commit
76150e2500
2 changed files with 4 additions and 0 deletions
|
|
@ -3240,6 +3240,9 @@ namespace TShockAPI
|
|||
}
|
||||
#endregion
|
||||
return;
|
||||
default:
|
||||
args.Player.SendErrorMessage("Invalid subcommand! Type {0}group help for more information on valid commands.", Specifier);
|
||||
return;
|
||||
}
|
||||
}
|
||||
#endregion Group Management
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue