diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/command/PluginCommand.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/command/PluginCommand.java b/src/main/java/org/bukkit/command/PluginCommand.java index 3bfa31fc..2abe1208 100644 --- a/src/main/java/org/bukkit/command/PluginCommand.java +++ b/src/main/java/org/bukkit/command/PluginCommand.java @@ -33,7 +33,7 @@ public final class PluginCommand extends Command implements PluginIdentifiableCo boolean success = false; if (!owningPlugin.isEnabled()) { - return false; + throw new CommandException("Cannot execute command '" + commandLabel + "' in plugin " + owningPlugin.getDescription().getFullName() + " - plugin is disabled."); } if (!testPermission(sender)) { |