From 9b0992c30dfbfb7c9ff40ceea61f4305e46ba837 Mon Sep 17 00:00:00 2001 From: Tastybento Date: Thu, 28 Dec 2017 17:20:33 -0800 Subject: [PATCH] Removed perm checks for console. --- .../us/tastybento/bskyblock/api/commands/CompositeCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/us/tastybento/bskyblock/api/commands/CompositeCommand.java b/src/main/java/us/tastybento/bskyblock/api/commands/CompositeCommand.java index 0e17fc950..f1c848a0e 100644 --- a/src/main/java/us/tastybento/bskyblock/api/commands/CompositeCommand.java +++ b/src/main/java/us/tastybento/bskyblock/api/commands/CompositeCommand.java @@ -122,7 +122,8 @@ public abstract class CompositeCommand extends Command implements PluginIdentifi user.sendMessage("general.errors.use-in-game"); return true; } - if (!cmd.getPermission().isEmpty() && !sender.hasPermission(cmd.getPermission())) { + // Check perms, but only if this isn't the console + if ((sender instanceof Player) && !cmd.getPermission().isEmpty() && !sender.hasPermission(cmd.getPermission())) { user.sendMessage("general.errors.no-permission"); return true; }