/// <summary>Executes the command.</summary> /// <param name="sender">Sender of the command.</param> /// <param name="bridge">The system to script bridge.</param> /// <param name="command">The full command requested.</param> public override void Execute(IController sender, ISystemToScriptBridge bridge, ICommand command) { string name = new MudEngineAttributes().MudName; string duration = CalculateDuration(bridge.ServerManager.StartTime); string output = string.Format("{0} has been running for {1}.", name, duration); sender.Write(output); }
/// <summary>Executes the command.</summary> /// <param name="sender">Sender of the command.</param> /// <param name="bridge">The system to script bridge.</param> /// <param name="command">The full command requested.</param> public override void Execute(IController sender, ISystemToScriptBridge bridge, ICommand command) { string version = this.GetType().Assembly.GetName().Version.ToString(); string name = new MudEngineAttributes().MudName; string output = string.Format("{0} is running version {1} of the WheelMUD Engine.", name, version); sender.Write(output); }