From e0fa23359fbc56f80f02cabfff45726317a28814 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 29 Feb 2012 12:15:23 -0800 Subject: [PATCH] Removed /mcstats usage from console (use inspect instead) --- .../commands/general/McstatsCommand.java | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java b/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java index ee8853f0b..bc7b0eb58 100644 --- a/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/general/McstatsCommand.java @@ -30,20 +30,10 @@ public class McstatsCommand implements CommandExecutor { player = (Player) sender; } - if (!(sender instanceof Player)) { - if(args.length != 1) { - sender.sendMessage("Usage: mcstats "); - return true; - } else { - Player temp = plugin.getServer().getPlayer(args[0]); - if(temp == null) { - sender.sendMessage("Could not find player: " + args[0]); - return true; - } else { - player = temp; - } - } - } + if (!(sender instanceof Player)) { + sender.sendMessage("This command does not support console useage."); + return true; + } PlayerProfile PP = Users.getProfile(player);