Group isn't required for /user del
This commit is contained in:
parent
bab6d6cd2e
commit
373d9118ac
1 changed files with 2 additions and 6 deletions
|
|
@ -331,10 +331,7 @@ namespace TShockAPI
|
|||
args.Player.SendMessage("Note: Passwords are stored with SHA512 hashing. To reset a user's password, remove and re-add them.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (args.Parameters.Count > 2)
|
||||
{
|
||||
if (args.Parameters[0] == "add")
|
||||
if (args.Parameters[0] == "add" && args.Parameters.Count > 2)
|
||||
{
|
||||
int returnval = 0;
|
||||
if (args.Parameters[1].Split(':').Length == 2)
|
||||
|
|
@ -361,7 +358,7 @@ namespace TShockAPI
|
|||
return;
|
||||
}
|
||||
args.Player.SendMessage("Invalid syntax. Try /user help.", Color.Red);
|
||||
} else if (args.Parameters[0] == "del")
|
||||
}else if (args.Parameters[0] == "del" && args.Parameters.Count == 1)
|
||||
{
|
||||
if (args.Parameters[1].Contains("."))
|
||||
{
|
||||
|
|
@ -386,7 +383,6 @@ namespace TShockAPI
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue