mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 02:58:03 +01:00
Removed /mcstats usage from console (use inspect instead)
This commit is contained in:
parent
4ab71bcf36
commit
e0fa23359f
@ -30,20 +30,10 @@ public class McstatsCommand implements CommandExecutor {
|
||||
player = (Player) sender;
|
||||
}
|
||||
|
||||
if (!(sender instanceof Player)) {
|
||||
if(args.length != 1) {
|
||||
sender.sendMessage("Usage: mcstats <username>");
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user