Added way to have an overridable group that is session based.

New command /sudo <player> <group> will override the player's group with the group specified.
This commit is contained in:
Zack Piispanen 2012-12-15 18:59:25 -05:00
parent 9960526384
commit 0aedf2b108
4 changed files with 60 additions and 5 deletions

View file

@ -1372,6 +1372,7 @@ namespace TShockAPI
args.Player.IgnoreActionsForDisabledArmor = "none";
args.Player.Group = group;
args.Player.tempGroup = null;
args.Player.UserAccountName = args.Player.Name;
args.Player.UserID = TShock.Users.GetUserID(args.Player.UserAccountName);
args.Player.IsLoggedIn = true;