fixed /auth
This commit is contained in:
parent
c73bd08709
commit
78c577ab96
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ namespace TShockAPI
|
||||||
if (givenCode == ConfigurationManager.authToken)
|
if (givenCode == ConfigurationManager.authToken)
|
||||||
{
|
{
|
||||||
TextWriter tw = new StreamWriter(FileTools.SaveDir + "users.txt", true);
|
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.");
|
Tools.SendMessage(args.PlayerID, "SuperAdmin authenticated. Please re-connect using the same IP.");
|
||||||
ConfigurationManager.authToken = 0;
|
ConfigurationManager.authToken = 0;
|
||||||
tw.Close();
|
tw.Close();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue