Do not append Tshock to the MotD path.

This commit is contained in:
DogooFalchion 2016-10-22 19:03:32 -04:00
parent 31794b6a27
commit a2003f130b

View file

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