Re-add ServerNickname and copies it to ServerName
This commit is contained in:
parent
2289458053
commit
4eaf64709b
2 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,8 @@ namespace TShockAPI
|
||||||
[Description("This will turn on a token requirement for the /status API endpoint.")] public bool
|
[Description("This will turn on a token requirement for the /status API endpoint.")] public bool
|
||||||
EnableTokenEndpointAuthentication;
|
EnableTokenEndpointAuthentication;
|
||||||
|
|
||||||
|
[Description("Deprecated. Use ServerName instead.")] public string ServerNickname = "TShock Server";
|
||||||
|
|
||||||
[Description("Enable/Disable the rest api.")] public bool RestApiEnabled;
|
[Description("Enable/Disable the rest api.")] public bool RestApiEnabled;
|
||||||
|
|
||||||
[Description("This is the port which the rest api will listen on.")] public int RestApiPort = 7878;
|
[Description("This is the port which the rest api will listen on.")] public int RestApiPort = 7878;
|
||||||
|
|
|
||||||
|
|
@ -1590,6 +1590,8 @@ namespace TShockAPI
|
||||||
RconHandler.ListenPort = file.RconPort;
|
RconHandler.ListenPort = file.RconPort;
|
||||||
|
|
||||||
Utils.HashAlgo = file.HashAlgorithm;
|
Utils.HashAlgo = file.HashAlgorithm;
|
||||||
|
|
||||||
|
file.ServerName = file.ServerNickname;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue