From 16b3e51b4b1cf75497c90adde77bde587fcfcd6e Mon Sep 17 00:00:00 2001 From: k0rd Date: Wed, 8 Feb 2012 00:56:45 -0500 Subject: [PATCH] (REST) add max slots to /status --- TShockAPI/Rest/RestManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TShockAPI/Rest/RestManager.cs b/TShockAPI/Rest/RestManager.cs index 50e029a6..0de04184 100644 --- a/TShockAPI/Rest/RestManager.cs +++ b/TShockAPI/Rest/RestManager.cs @@ -148,6 +148,7 @@ namespace TShockAPI ret["playercount"] = Convert.ToString(activeplayers.Count()); ret["players"] = currentPlayers; + ret["maxplayers"] = TShock.Config.MaxSlots; return ret; } @@ -651,4 +652,4 @@ namespace TShockAPI #endregion } -} \ No newline at end of file +}