Ignore:
Timestamp:
Sep 4, 2018, 1:00:48 PM (6 years ago)
Author:
alloc
Message:

Code style cleanup (mostly whitespace changes, enforcing braces, using cleanup)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/AllocsCommands/Commands/SayToPlayer.cs

    r238 r325  
    22using System.Collections.Generic;
    33
    4 namespace AllocsFixes.CustomCommands
    5 {
    6         public class SayToPlayer : ConsoleCmdAbstract
    7         {
    8                 public override string GetDescription ()
    9                 {
     4namespace AllocsFixes.CustomCommands {
     5        public class SayToPlayer : ConsoleCmdAbstract {
     6                public override string GetDescription () {
    107                        return "send a message to a single player";
    118                }
     
    1310                public override string GetHelp () {
    1411                        return "Usage:\n" +
    15                                    "   pm <player name / steam id / entity id> <message>\n" +
    16                                    "Send a PM to the player given by the player name or entity id (as given by e.g. \"lpi\").";
     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\").";
    1714                }
    1815
    19                 public override string[] GetCommands ()
    20                 {
    21                         return new string[] { "sayplayer", "pm" };
     16                public override string[] GetCommands () {
     17                        return new[] {"sayplayer", "pm"};
    2218                }
    2319
    24                 private void RunInternal (ClientInfo _sender, List<string> _params)
    25                 {
     20                private void RunInternal (ClientInfo _sender, List<string> _params) {
    2621                        if (_params.Count < 2) {
    2722                                SdtdConsole.Instance.Output ("Usage: sayplayer <playername|entityid> <message>");
     
    3934                }
    4035
    41                 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo)
    42                 {
     36                public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
    4337                        try {
    4438                                if (_senderInfo.RemoteClientInfo != null) {
Note: See TracChangeset for help on using the changeset viewer.