Changed File.Delete to use Path.Combine

This commit is contained in:
Lucas Nicodemus 2011-07-13 12:41:48 -06:00
parent 6468ed7562
commit fa8bf82e35

View file

@ -1601,7 +1601,7 @@ namespace TShockAPI
args.Player.SendMessage("You can always use the /user command to manage players. Don't just delete the auth.lck.");
args.Player.SendMessage("Thankyou for using TShock! http://tshock.co/ & http://github.com/TShock/TShock");
FileTools.CreateFile(Path.Combine(TShock.SavePath, "auth.lck"));
File.Delete("./tshock/authcode.txt");
File.Delete(Path.Combine(TShock.SavePath, "authcode.txt"));
TShock.AuthToken = 0;
}