Update references to MOTD to point to the variable, instead of having magic strings.
This commit is contained in:
parent
8f7b8db2a1
commit
6242a54603
4 changed files with 5 additions and 5 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue