From 60892d566ea029dac4db855e71188834dc3acf01 Mon Sep 17 00:00:00 2001 From: chickeneer Date: Wed, 7 Jun 2017 15:56:58 -0500 Subject: [PATCH] Temporary fix for lack of permission errors on commands --- bukkit/src/main/java/co/aikar/commands/BukkitRootCommand.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bukkit/src/main/java/co/aikar/commands/BukkitRootCommand.java b/bukkit/src/main/java/co/aikar/commands/BukkitRootCommand.java index 69ccbbe0..ce8ffa0c 100644 --- a/bukkit/src/main/java/co/aikar/commands/BukkitRootCommand.java +++ b/bukkit/src/main/java/co/aikar/commands/BukkitRootCommand.java @@ -71,6 +71,7 @@ public class BukkitRootCommand extends Command implements RootCommand { BaseCommand subHandler = this.subCommands.get(checkSub); if (subHandler != null) { if (!subHandler.testPermission(sender)) { + sender.sendMessage("&cI'm sorry, but you do not have permission to perform this command."); return true; } subHandler.execute(sender, commandLabel, args); @@ -78,6 +79,7 @@ public class BukkitRootCommand extends Command implements RootCommand { } } if (!this.defCommand.testPermission(sender)) { + sender.sendMessage("&cI'm sorry, but you do not have permission to perform this command."); return true; }