Check does /user command have atleast one param.
This commit is contained in:
parent
9a810d0c11
commit
e70a1cfcef
1 changed files with 7 additions and 0 deletions
|
|
@ -431,6 +431,13 @@ namespace TShockAPI
|
|||
// return;
|
||||
//}
|
||||
|
||||
// This guy needs to be here so that people don't get exceptions when they type /user
|
||||
if (args.Parameters.Count < 1)
|
||||
{
|
||||
args.Player.SendMessage("Invalid user syntax. Try /user help.", Color.Red);
|
||||
return;
|
||||
}
|
||||
|
||||
string subcmd = args.Parameters[0];
|
||||
|
||||
// Add requires a username:password pair/ip address and a group specified.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue