From 764971853059459e31c7a8c0e09811dba6fba50b Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Tue, 24 Feb 2015 19:12:22 -0700 Subject: [PATCH] Some people really like uneven spacing --- TShockAPI/Commands.cs | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index 58d7f132..dae18214 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -608,25 +608,25 @@ namespace TShockAPI player.SendErrorMessage("Invalid command entered. Type {0}help for a list of valid commands.", TShock.Config.CommandSpecifier); return true; } - foreach (Command cmd in cmds) - { - if (!cmd.CanRun(player)) - { - TShock.Utils.SendLogs(string.Format("{0} tried to execute {1}{2}.", player.Name, TShock.Config.CommandSpecifier, cmdText), Color.PaleVioletRed, player); - player.SendErrorMessage("You do not have access to this command."); - } - else if (!cmd.AllowServer && !player.RealPlayer) - { - player.SendErrorMessage("You must use this command in-game."); - } - else - { - if (cmd.DoLog) - TShock.Utils.SendLogs(string.Format("{0} executed: {1}{2}.", player.Name, TShock.Config.CommandSpecifier, cmdText), Color.PaleVioletRed, player); - cmd.Run(cmdText, player, args); - } - } - return true; + foreach (Command cmd in cmds) + { + if (!cmd.CanRun(player)) + { + TShock.Utils.SendLogs(string.Format("{0} tried to execute {1}{2}.", player.Name, TShock.Config.CommandSpecifier, cmdText), Color.PaleVioletRed, player); + player.SendErrorMessage("You do not have access to this command."); + } + else if (!cmd.AllowServer && !player.RealPlayer) + { + player.SendErrorMessage("You must use this command in-game."); + } + else + { + if (cmd.DoLog) + TShock.Utils.SendLogs(string.Format("{0} executed: {1}{2}.", player.Name, TShock.Config.CommandSpecifier, cmdText), Color.PaleVioletRed, player); + cmd.Run(cmdText, player, args); + } + } + return true; } ///