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