Removed /mcstats usage from console (use inspect instead)

This commit is contained in:
nossr50 2012-02-29 12:15:23 -08:00
parent 4ab71bcf36
commit e0fa23359f

View File

@ -31,18 +31,8 @@ public class McstatsCommand implements CommandExecutor {
} }
if (!(sender instanceof Player)) { if (!(sender instanceof Player)) {
if(args.length != 1) { sender.sendMessage("This command does not support console useage.");
sender.sendMessage("Usage: mcstats <username>");
return true; 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;
}
}
} }
PlayerProfile PP = Users.getProfile(player); PlayerProfile PP = Users.getProfile(player);