From 9281d0ea6a4088ffa14d307eb4d9c15d8c769170 Mon Sep 17 00:00:00 2001 From: Deathmax Date: Mon, 27 Jun 2011 22:38:58 +0800 Subject: [PATCH] /auth output is now saved into auth.lck --- TShockAPI/TShock.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index c666df6d..b26967ee 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -184,7 +184,8 @@ namespace TShockAPI Console.WriteLine("TShock Notice: To become SuperAdmin, join the game and type /auth " + ConfigurationManager.AuthToken); Console.WriteLine("This token will only display ONCE. This only works ONCE. If you don't use it and the server goes down, delete auth.lck."); - FileTools.CreateFile(Path.Combine(SavePath, "auth.lck")); + //FileTools.CreateFile(Path.Combine(SavePath, "auth.lck")); + File.WriteAllText(Path.Combine(SavePath, "auth.lck"), ConfigurationManager.AuthToken.ToString()); } }