Fix the /disguiseplayer command not working for console

This commit is contained in:
Andrew 2013-11-12 16:35:10 +13:00
parent 0576614825
commit 40c41fe1d0

View file

@ -15,10 +15,6 @@ public class DisguisePlayerCommand extends BaseDisguiseCommand {
@Override @Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) { public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
if (sender.getName().equals("CONSOLE")) {
sender.sendMessage(ChatColor.RED + "You may not use this command from the console!");
return true;
}
ArrayList<String> allowedDisguises = getAllowedDisguises(sender, "disguiseplayer"); ArrayList<String> allowedDisguises = getAllowedDisguises(sender, "disguiseplayer");
if (allowedDisguises.isEmpty()) { if (allowedDisguises.isEmpty()) {
sender.sendMessage(ChatColor.RED + "You are forbidden to use this command."); sender.sendMessage(ChatColor.RED + "You are forbidden to use this command.");