From 59ebe35650cffe7a5f6327aca167a57764299c48 Mon Sep 17 00:00:00 2001 From: Laurens de Voogd Date: Tue, 17 Jun 2014 17:37:53 +0200 Subject: [PATCH] Added server version --- TShockAPI/Rest/RestManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TShockAPI/Rest/RestManager.cs b/TShockAPI/Rest/RestManager.cs index a4ad0502..d6deacfc 100644 --- a/TShockAPI/Rest/RestManager.cs +++ b/TShockAPI/Rest/RestManager.cs @@ -223,6 +223,7 @@ namespace TShockAPI var ret = new RestObject() { {"name", TShock.Config.ServerName}, + {"version", Main.versionNumber}, {"port", TShock.Config.ServerPort}, {"playercount", Main.player.Where(p => null != p && p.active).Count()}, {"maxplayers", TShock.Config.MaxSlots},