From 59ebe35650cffe7a5f6327aca167a57764299c48 Mon Sep 17 00:00:00 2001 From: Laurens de Voogd Date: Tue, 17 Jun 2014 17:37:53 +0200 Subject: [PATCH 1/4] 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}, From bf60e34b18e04bb027e9a85f67845deca1f1e60c Mon Sep 17 00:00:00 2001 From: Laurens de Voogd Date: Wed, 25 Jun 2014 00:24:20 +0200 Subject: [PATCH 2/4] Added TShock version --- TShockAPI/Rest/RestManager.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/TShockAPI/Rest/RestManager.cs b/TShockAPI/Rest/RestManager.cs index d6deacfc..e1e53b77 100644 --- a/TShockAPI/Rest/RestManager.cs +++ b/TShockAPI/Rest/RestManager.cs @@ -224,6 +224,7 @@ namespace TShockAPI { {"name", TShock.Config.ServerName}, {"version", Main.versionNumber}, + {"tshock version", TShock.VersionNum}, {"port", TShock.Config.ServerPort}, {"playercount", Main.player.Where(p => null != p && p.active).Count()}, {"maxplayers", TShock.Config.MaxSlots}, From 28fd3bbc56b4201c183ab0aa9283e4c75f40ad6f Mon Sep 17 00:00:00 2001 From: Laurens de Voogd Date: Wed, 25 Jun 2014 00:27:03 +0200 Subject: [PATCH 3/4] Removed the space between tshock and version Because Endimmion told me to --- TShockAPI/Rest/RestManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Rest/RestManager.cs b/TShockAPI/Rest/RestManager.cs index e1e53b77..28b0b434 100644 --- a/TShockAPI/Rest/RestManager.cs +++ b/TShockAPI/Rest/RestManager.cs @@ -224,7 +224,7 @@ namespace TShockAPI { {"name", TShock.Config.ServerName}, {"version", Main.versionNumber}, - {"tshock version", TShock.VersionNum}, + {"tshockversion", TShock.VersionNum}, {"port", TShock.Config.ServerPort}, {"playercount", Main.player.Where(p => null != p && p.active).Count()}, {"maxplayers", TShock.Config.MaxSlots}, From 7c7f6007b72eb59cc8e1d5c2ab3dbfca5106835b Mon Sep 17 00:00:00 2001 From: Laurens de Voogd Date: Wed, 25 Jun 2014 00:28:51 +0200 Subject: [PATCH 4/4] Changed version to serverversion --- TShockAPI/Rest/RestManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Rest/RestManager.cs b/TShockAPI/Rest/RestManager.cs index 28b0b434..e2f85e5b 100644 --- a/TShockAPI/Rest/RestManager.cs +++ b/TShockAPI/Rest/RestManager.cs @@ -223,7 +223,7 @@ namespace TShockAPI var ret = new RestObject() { {"name", TShock.Config.ServerName}, - {"version", Main.versionNumber}, + {"serverversion", Main.versionNumber}, {"tshockversion", TShock.VersionNum}, {"port", TShock.Config.ServerPort}, {"playercount", Main.player.Where(p => null != p && p.active).Count()},