- Timestamp:
- Sep 4, 2018, 1:00:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/AllocsCommands/Commands/SayToPlayer.cs
r238 r325 2 2 using System.Collections.Generic; 3 3 4 namespace AllocsFixes.CustomCommands 5 { 6 public class SayToPlayer : ConsoleCmdAbstract 7 { 8 public override string GetDescription () 9 { 4 namespace AllocsFixes.CustomCommands { 5 public class SayToPlayer : ConsoleCmdAbstract { 6 public override string GetDescription () { 10 7 return "send a message to a single player"; 11 8 } … … 13 10 public override string GetHelp () { 14 11 return "Usage:\n" + 15 16 12 " pm <player name / steam id / entity id> <message>\n" + 13 "Send a PM to the player given by the player name or entity id (as given by e.g. \"lpi\")."; 17 14 } 18 15 19 public override string[] GetCommands () 20 { 21 return new string[] { "sayplayer", "pm" }; 16 public override string[] GetCommands () { 17 return new[] {"sayplayer", "pm"}; 22 18 } 23 19 24 private void RunInternal (ClientInfo _sender, List<string> _params) 25 { 20 private void RunInternal (ClientInfo _sender, List<string> _params) { 26 21 if (_params.Count < 2) { 27 22 SdtdConsole.Instance.Output ("Usage: sayplayer <playername|entityid> <message>"); … … 39 34 } 40 35 41 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) 42 { 36 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) { 43 37 try { 44 38 if (_senderInfo.RemoteClientInfo != null) {
Note:
See TracChangeset
for help on using the changeset viewer.