Merge pull request #1317 from DogooFalchion/motd
Update MotD file parsing to convert color formats into smart text.
This commit is contained in:
commit
1328d71fdc
4 changed files with 102 additions and 13 deletions
|
|
@ -249,7 +249,7 @@ namespace TShockAPI
|
|||
[Token]
|
||||
private object ServerMotd(RestRequestArgs args)
|
||||
{
|
||||
string motdFilePath = Path.Combine(TShock.SavePath, "motd.txt");
|
||||
string motdFilePath = FileTools.MotdPath;
|
||||
if (!File.Exists(motdFilePath))
|
||||
return this.RestError("The motd.txt was not found.", "500");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue