/auth now grants superadmin internally and adds the user to the db

This commit is contained in:
Lucas Nicodemus 2011-07-12 01:37:29 -06:00
parent 236cf6b42b
commit 7bc49e29e0
2 changed files with 3 additions and 2 deletions

View file

@ -1528,6 +1528,7 @@ namespace TShockAPI
if (givenCode == TShock.AuthToken && args.Player.Group.Name != "superadmin")
{
TShock.Users.AddUser(args.Player.IP,"","","superadmin");
args.Player.Group = Tools.GetGroup("superadmin");
args.Player.SendMessage("This IP address is now superadmin. Please perform the following command:");
args.Player.SendMessage("/user add <username>:<password> superadmin");
args.Player.SendMessage("This will create the username <username> with the password <password> as part of the superadmin group.");