Fix the /disguiseplayer command not working for console
This commit is contained in:
parent
0576614825
commit
40c41fe1d0
@ -15,10 +15,6 @@ public class DisguisePlayerCommand extends BaseDisguiseCommand {
|
||||
|
||||
@Override
|
||||
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");
|
||||
if (allowedDisguises.isEmpty()) {
|
||||
sender.sendMessage(ChatColor.RED + "You are forbidden to use this command.");
|
||||
|
Loading…
Reference in New Issue
Block a user