Do not append Tshock to the MotD path.
This commit is contained in:
parent
31794b6a27
commit
a2003f130b
1 changed files with 1 additions and 1 deletions
|
|
@ -280,7 +280,7 @@ namespace TShockAPI
|
||||||
[Token]
|
[Token]
|
||||||
private object ServerMotd(RestRequestArgs args)
|
private object ServerMotd(RestRequestArgs args)
|
||||||
{
|
{
|
||||||
string motdFilePath = Path.Combine(TShock.SavePath, FileTools.MotdPath);
|
string motdFilePath = FileTools.MotdPath;
|
||||||
if (!File.Exists(motdFilePath))
|
if (!File.Exists(motdFilePath))
|
||||||
return this.RestError("The motd.txt was not found.", "500");
|
return this.RestError("The motd.txt was not found.", "500");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue