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

@ -113,6 +113,7 @@ namespace TShockAPI
commands.Add(new Command("me", "", ThirdPerson));
commands.Add(new Command("p", "", PartyChat));
commands.Add(new Command("butcher", "cheat", Butcher));
commands.Add(new Command("checkupdates", "maintenance", CheckUpdates));
if (ConfigurationManager.distributationAgent != "terraria-online")
{
commands.Add(new Command("kill", "kill", Kill));
@ -124,6 +125,11 @@ namespace TShockAPI
#region Command Methods
public static void CheckUpdates(CommandArgs args)
{
UpdateManager.CheckUpdate();
}
public static void PartyChat(CommandArgs args)
{
int playerTeam = Main.player[args.PlayerID].team;