Switch UpdateManager to use mimic server

This commit is contained in:
Lucas Nicodemus 2015-02-21 15:21:44 -07:00
parent da85655472
commit e93d4c9741

4
TShockAPI/UpdateManager.cs Normal file → Executable file
View file

@ -27,7 +27,7 @@ namespace TShockAPI
{ {
public class UpdateManager public class UpdateManager
{ {
private string updateUrl = "https://github.com/NyxStudios/TShock/blob/general-devel/tshock_update.json?raw=true"; private string updateUrl = "http://update.tshock.co/latest/";
/// <summary> /// <summary>
/// Check once every X minutes. /// Check once every X minutes.
@ -115,7 +115,7 @@ namespace TShockAPI
private void NotifyAdministrator(TSPlayer player, string[] changes) private void NotifyAdministrator(TSPlayer player, string[] changes)
{ {
player.SendMessage("The server is out of date.", Color.Red); player.SendMessage("The server is out of date. Latest version: ", Color.Red);
for (int j = 0; j < changes.Length; j++) for (int j = 0; j < changes.Length; j++)
{ {
player.SendMessage(changes[j], Color.Red); player.SendMessage(changes[j], Color.Red);