Skip to content

Commit

Permalink
Added command for checking version
Browse files Browse the repository at this point in the history
  • Loading branch information
loganizer405 committed Apr 18, 2014
1 parent 427e9eb commit 19ec2ab
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,14 @@ public void OnInitialize(EventArgs args)
{
Commands.ChatCommands.Add(new Command("", Vote, "vote"));
Commands.ChatCommands.Add(new Command("vote.changeid", ChangeID, "tserverweb"));
//This is so it will tell you if a new version is availiable.
Commands.ChatCommands.Add(new Command("vote.checkversion", CheckVersion, "tswversioncheck"));
}
}
public void CheckVersion(CommandArgs e)
{
e.Player.SendInfoMessage(Version.ToString());
}
public void Vote(CommandArgs e)
{
int ID;
Expand Down

0 comments on commit 19ec2ab

Please sign in to comment.