source: binary-improvements/7dtd-server-fixes/src/CustomCommands/Version.cs@ 217

Last change on this file since 217 was 130, checked in by alloc, 10 years ago

Fixes

File size: 677 bytes
RevLine 
[114]1using System;
2using System.Collections.Generic;
3using System.Reflection;
4
[130]5namespace AllocsFixes.CustomCommands
[114]6{
[130]7 public class Version : ConsoleCommand
[114]8 {
[130]9 public Version (ConsoleSdtd cons) : base(cons)
10 {
11 }
[114]12
[130]13 public override string Description ()
14 {
15 return "get the currently running version of the server fixes";
16 }
[114]17
[130]18 public override string[] Names ()
19 {
20 return new string[] { "version", string.Empty };
21 }
[114]22
[130]23 public override void Run (string[] _params)
24 {
25 try {
26 m_Console.SendResult ("Server fixes version: " + Assembly.GetExecutingAssembly ().GetName ().Version);
27 } catch (Exception e) {
28 Log.Out ("Error in Version.Run: " + e);
29 }
[114]30 }
31 }
32}
Note: See TracBrowser for help on using the repository browser.