Re-enable stat tracker
This commit is contained in:
parent
e2eb659d62
commit
4cb36c4e37
2 changed files with 3 additions and 1 deletions
2
TShockAPI/StatTracker.cs
Normal file → Executable file
2
TShockAPI/StatTracker.cs
Normal file → Executable file
|
|
@ -45,7 +45,7 @@ namespace TShockAPI
|
|||
|
||||
var serialized = Newtonsoft.Json.JsonConvert.SerializeObject(data);
|
||||
var encoded = HttpUtility.UrlEncode(serialized);
|
||||
var uri = String.Format("http://96.47.231.227:8000?data={0}", encoded);
|
||||
var uri = String.Format("http://stats.tshock.co/publish/{0}", encoded);
|
||||
var client = (HttpWebRequest)WebRequest.Create(uri);
|
||||
client.Timeout = 5000;
|
||||
try
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ namespace TShockAPI
|
|||
public static SecureRest RestApi;
|
||||
public static RestManager RestManager;
|
||||
public static Utils Utils = Utils.Instance;
|
||||
public static StatTracker StatTracker = new StatTracker();
|
||||
public static UpdateManager UpdateManager;
|
||||
public static ILog Log;
|
||||
/// <summary>
|
||||
|
|
@ -631,6 +632,7 @@ namespace TShockAPI
|
|||
FixChestStacks();
|
||||
|
||||
UpdateManager = new UpdateManager();
|
||||
StatTracker.Initialize();
|
||||
}
|
||||
|
||||
private void ComputeMaxStyles()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue