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:
parent
998bf71b96
commit
31794b6a27
2 changed files with 32 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue