Added force check update command

Closes #54
This commit is contained in:
Shank 2011-06-08 04:37:11 -06:00
parent d6a76f76a0
commit 2910a4beff
2 changed files with 15 additions and 5 deletions

View file

@ -68,13 +68,17 @@ namespace TShockAPI
long currentEpoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
if (currentEpoch > UpdateManager.updateEpoch)
{
if (ServerIsOutOfDate())
{
EnableUpdateCommand();
NotifyAdministrators(globalChanges);
}
CheckUpdate();
}
}
public static void CheckUpdate()
{
if (ServerIsOutOfDate())
{
EnableUpdateCommand();
NotifyAdministrators(globalChanges);
}
}
}
}