Changeset 325 for binary-improvements/AllocsCommands/Commands/Reply.cs
- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/Commands/Reply.cs
r309 r325 1 using System;2 1 using System.Collections.Generic; 3 2 4 namespace AllocsFixes.CustomCommands 5 { 6 public class Reply : ConsoleCmdAbstract 7 { 8 public override string GetDescription () 9 { 3 namespace AllocsFixes.CustomCommands { 4 public class Reply : ConsoleCmdAbstract { 5 public override string GetDescription () { 10 6 return "send a message to the player who last sent you a PM"; 11 7 } … … 13 9 public override string GetHelp () { 14 10 return "Usage:\n" + 15 16 11 " reply <message>\n" + 12 "Send the given message to the user you last received a PM from."; 17 13 } 18 14 19 public override string[] GetCommands () 20 { 21 return new string[] { "reply", "re" }; 15 public override string[] GetCommands () { 16 return new[] {"reply", "re"}; 22 17 } 23 18 24 private void RunInternal (ClientInfo _sender, List<string> _params) 25 { 19 private void RunInternal (ClientInfo _sender, List<string> _params) { 26 20 if (_params.Count < 1) { 27 21 SdtdConsole.Instance.Output ("Usage: reply <message>"); … … 35 29 Chat.SendMessage (receiver, _sender, message); 36 30 } else { 37 SdtdConsole.Instance.Output ("You have not received a PM so far or sender of last received PM is no longer online."); 31 SdtdConsole.Instance.Output ( 32 "You have not received a PM so far or sender of last received PM is no longer online."); 38 33 } 39 34 }
Note:
See TracChangeset
for help on using the changeset viewer.