From 7bc49e29e0db175278353140854227bff5f5d75d Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Tue, 12 Jul 2011 01:37:29 -0600 Subject: [PATCH] /auth now grants superadmin internally and adds the user to the db --- TShockAPI/Commands.cs | 1 + TShockAPI/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 10e750e9..948ccadf 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -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 : superadmin"); args.Player.SendMessage("This will create the username with the password as part of the superadmin group."); diff --git a/TShockAPI/Properties/AssemblyInfo.cs b/TShockAPI/Properties/AssemblyInfo.cs index 483124ce..ed40f857 100644 --- a/TShockAPI/Properties/AssemblyInfo.cs +++ b/TShockAPI/Properties/AssemblyInfo.cs @@ -35,5 +35,5 @@ using System.Runtime.InteropServices; // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("2.3.4.0711")] -[assembly: AssemblyFileVersion("2.3.4.0711")] +[assembly: AssemblyVersion("2.3.4.0712")] +[assembly: AssemblyFileVersion("2.3.4.0712")]