Fix logout to set group to the guest group, and temp to null. These seem to have been swapped on accident, and used the default group instead of guest.
This commit is contained in:
parent
aaf18626e0
commit
7fee8d786c
1 changed files with 2 additions and 2 deletions
|
|
@ -868,8 +868,8 @@ namespace TShockAPI
|
|||
PlayerHooks.OnPlayerLogout(args.Player);
|
||||
|
||||
args.Player.PlayerData = new PlayerData(args.Player);
|
||||
args.Player.Group = null;
|
||||
args.Player.tempGroup = TShockAPI.Group.DefaultGroup;
|
||||
args.Player.Group = TShock.Groups.GetGroupByName(TShock.Config.DefaultGuestGroupName);
|
||||
args.Player.tempGroup = null;
|
||||
args.Player.UserAccountName = null;
|
||||
args.Player.UserID = -1;
|
||||
args.Player.IsLoggedIn = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue