From e92b57c50c3055cd9aa869d5996673bd2861c552 Mon Sep 17 00:00:00 2001 From: GJ Date: Sat, 2 Feb 2013 21:29:55 -0500 Subject: [PATCH] Return normal usage, not console usage. --- .../java/com/gmail/nossr50/commands/admin/McgodCommand.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/admin/McgodCommand.java b/src/main/java/com/gmail/nossr50/commands/admin/McgodCommand.java index 95f212fd9..3a493c29f 100644 --- a/src/main/java/com/gmail/nossr50/commands/admin/McgodCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/admin/McgodCommand.java @@ -6,7 +6,6 @@ import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import com.gmail.nossr50.datatypes.McMMOPlayer; -import com.gmail.nossr50.commands.CommandHelper; import com.gmail.nossr50.datatypes.PlayerProfile; import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.util.Permissions; @@ -19,8 +18,8 @@ public class McgodCommand implements CommandExecutor { switch (args.length) { case 0: - if (CommandHelper.noConsoleUsage(sender)) { - return true; + if (!(sender instanceof Player)) { + return false; } profile = Users.getPlayer((Player) sender).getProfile();