From 78c577ab9636cb17071ebf7762bac1c840786526 Mon Sep 17 00:00:00 2001 From: Maverick Motherfucker Date: Sun, 5 Jun 2011 22:23:26 -0700 Subject: [PATCH 1/2] fixed /auth --- TShockAPI/Commands.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index a3362712..4f2f1e53 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -334,7 +334,7 @@ namespace TShockAPI if (givenCode == ConfigurationManager.authToken) { TextWriter tw = new StreamWriter(FileTools.SaveDir + "users.txt", true); - tw.WriteLine(Tools.GetRealIP(Convert.ToString(Netplay.serverSock[args.PlayerID].tcpClient.Client.RemoteEndPoint)) + " superadmin"); + tw.Write("\n" + Tools.GetRealIP(Convert.ToString(Netplay.serverSock[args.PlayerID].tcpClient.Client.RemoteEndPoint)) + " superadmin"); Tools.SendMessage(args.PlayerID, "SuperAdmin authenticated. Please re-connect using the same IP."); ConfigurationManager.authToken = 0; tw.Close(); From 935813d679a477abbc8c8a6f38a81ca17e3abf31 Mon Sep 17 00:00:00 2001 From: Maverick Motherfucker Date: Sun, 5 Jun 2011 22:25:09 -0700 Subject: [PATCH 2/2] made vip inherit from default --- TShockAPI/config/groups.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/config/groups.txt b/TShockAPI/config/groups.txt index b23e8df8..a75a7f26 100644 --- a/TShockAPI/config/groups.txt +++ b/TShockAPI/config/groups.txt @@ -15,7 +15,7 @@ #ignoregriefdetection reservedslot default null -vip null reservedslot +vip default reservedslot newadmin default kick editspawn reservedslot admin newadmin ban causeevents spawnboss spawnmob tp immunetokick kill trustedadmin admin ignorecheatdetection maintenance cfg cheat pvpfun ignorecheatdetection immunetoban ignoregriefdetection \ No newline at end of file