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
|
@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.");
|
||||||
|
Loading…
Reference in New Issue
Block a user