- Timestamp:
- Aug 26, 2014, 4:41:47 PM (10 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src/CustomCommands
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/CustomCommands/Version.cs
r114 r130 3 3 using System.Reflection; 4 4 5 public class Version : ConsoleCommand 5 namespace AllocsFixes.CustomCommands 6 6 { 7 public Version (ConsoleSdtd cons) : base(cons)7 public class Version : ConsoleCommand 8 8 { 9 } 9 public Version (ConsoleSdtd cons) : base(cons) 10 { 11 } 10 12 11 public override string Description ()12 {13 return "get the currently running version of the server fixes";14 }13 public override string Description () 14 { 15 return "get the currently running version of the server fixes"; 16 } 15 17 16 public override string[] Names ()17 {18 return new string[] { "version", string.Empty };19 }18 public override string[] Names () 19 { 20 return new string[] { "version", string.Empty }; 21 } 20 22 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); 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 } 27 30 } 28 31 } 29 32 } 30
Note:
See TracChangeset
for help on using the changeset viewer.