Server passwords are disabled, moving this to TShock handling soon.

Change stat tracker mono detection
Fixed collision check to ignore tileSolidTop
This commit is contained in:
Zidonuke 2011-12-28 10:56:45 -05:00
parent 08069c6f97
commit 37c550c167
3 changed files with 14 additions and 18 deletions

View file

@ -51,10 +51,6 @@ namespace TShockAPI
tr.Close();
}
string mono = "false";
if (Type.GetType("Mono.Runtime") != null)
mono = "true";
using (var client = new WebClient())
{
client.Headers.Add("user-agent",
@ -64,11 +60,11 @@ namespace TShockAPI
string response;
if (TShock.Config.DisablePlayerCountReporting)
{
response = client.DownloadString("http://tshock.co/tickto.php?do=log&fp=" + fp + "&ver=" + TShock.VersionNum + "&os=" + System.Environment.OSVersion.ToString() + "&mono=" + mono + "&port=" + Netplay.serverPort + "&plcount=0");
response = client.DownloadString("http://tshock.co/tickto.php?do=log&fp=" + fp + "&ver=" + TShock.VersionNum + "&os=" + System.Environment.OSVersion.ToString() + "&mono=" + Main.runningMono + "&port=" + Netplay.serverPort + "&plcount=0");
}
else
{
response = client.DownloadString("http://tshock.co/tickto.php?do=log&fp=" + fp + "&ver=" + TShock.VersionNum + "&os=" + System.Environment.OSVersion.ToString() + "&mono=" + mono + "&port=" + Netplay.serverPort + "&plcount=" + TShock.Utils.ActivePlayers());
response = client.DownloadString("http://tshock.co/tickto.php?do=log&fp=" + fp + "&ver=" + TShock.VersionNum + "&os=" + System.Environment.OSVersion.ToString() + "&mono=" + Main.runningMono + "&port=" + Netplay.serverPort + "&plcount=" + TShock.Utils.ActivePlayers());
}
Log.ConsoleInfo("Stat Tracker: " + response + "\n");
}