Update references to MOTD to point to the variable, instead of having magic strings.

This commit is contained in:
DogooFalchion 2016-10-22 17:37:00 -04:00
parent 8f7b8db2a1
commit 6242a54603
4 changed files with 5 additions and 5 deletions

View file

@ -280,7 +280,7 @@ namespace TShockAPI
[Token]
private object ServerMotd(RestRequestArgs args)
{
string motdFilePath = Path.Combine(TShock.SavePath, "motd.txt");
string motdFilePath = Path.Combine(TShock.SavePath, FileTools.MotdPath);
if (!File.Exists(motdFilePath))
return this.RestError("The motd.txt was not found.", "500");