/auth output is now saved into auth.lck
This commit is contained in:
parent
07de1159fd
commit
9281d0ea6a
1 changed files with 2 additions and 1 deletions
|
|
@ -184,7 +184,8 @@ namespace TShockAPI
|
||||||
Console.WriteLine("TShock Notice: To become SuperAdmin, join the game and type /auth " +
|
Console.WriteLine("TShock Notice: To become SuperAdmin, join the game and type /auth " +
|
||||||
ConfigurationManager.AuthToken);
|
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.");
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue