/login kick -> error, add XML doc to Utils method.
This commit is contained in:
parent
6154ee60c1
commit
048aaf6f0c
2 changed files with 10 additions and 1 deletions
|
|
@ -825,8 +825,11 @@ namespace TShockAPI
|
|||
{
|
||||
var group = TShock.Groups.GetGroupByName(account.Group);
|
||||
|
||||
if (!TShock.Utils.AssertGroupValid(args.Player, group))
|
||||
if (group == null)
|
||||
{
|
||||
args.Player.SendErrorMessage("Login failed: The account references a group that doesn't exist.");
|
||||
return;
|
||||
}
|
||||
|
||||
args.Player.PlayerData = TShock.CharacterDB.GetPlayerData(args.Player, account.ID);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue