ShowFileToUser shouldn't assume the file is in the TShock folder. Use the file path variables where we can. Use smart text instead of removing color parsing.

This commit is contained in:
DogooFalchion 2016-10-22 19:01:27 -04:00
parent 998bf71b96
commit 31794b6a27
2 changed files with 32 additions and 9 deletions

View file

@ -4811,7 +4811,7 @@ namespace TShockAPI
private static void Rules(CommandArgs args)
{
TShock.Utils.ShowFileToUser(args.Player, "rules.txt");
TShock.Utils.ShowFileToUser(args.Player, FileTools.RulesPath);
}
private static void Whisper(CommandArgs args)