/user del now responds appropriately if the user doesn't exist
This commit is contained in:
parent
964115dbb5
commit
32c7645795
1 changed files with 9 additions and 4 deletions
|
|
@ -954,12 +954,17 @@ namespace TShockAPI
|
|||
args.Player.SendSuccessMessage("Account removed successfully.");
|
||||
Log.ConsoleInfo(args.Player.Name + " successfully deleted account: " + args.Parameters[1] + ".");
|
||||
}
|
||||
catch (UserNotExistException e)
|
||||
{
|
||||
args.Player.SendErrorMessage("The user " + user.Name + " does not exist! Deleted nobody!");
|
||||
}
|
||||
catch (UserManagerException ex)
|
||||
{
|
||||
args.Player.SendMessage(ex.Message, Color.Red);
|
||||
Log.ConsoleError(ex.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
// Password changing requires a username, and a new password to set
|
||||
else if (subcmd == "password")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue