Added startup/shutdown messages to Rest, for troubleshooting bad configuration settings.
Added server nickname configuration option, to be returned in the /status API endpoint Added configuration option for disabling the /check API endpoint in the event that users don't like that. Added /status API endpoint
This commit is contained in:
parent
ce8d12b27f
commit
92d940e5dc
4 changed files with 47 additions and 6 deletions
|
|
@ -187,6 +187,12 @@ namespace TShockAPI
|
|||
[Description("This will announce a player's location on join")]
|
||||
public bool EnableGeoIP = false;
|
||||
|
||||
[Description("This will turn on a token requirement for the /status API endpoint.")]
|
||||
public bool EnableTokenEndpointAuthentication = false;
|
||||
|
||||
[Description("This is used when the API endpoint /status is queried.")]
|
||||
public string ServerNickname = "TShock Server";
|
||||
|
||||
public static ConfigFile Read(string path)
|
||||
{
|
||||
if (!File.Exists(path))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue