mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-11-01 09:09:31 +00:00
SPIGOT-3748: Throw error message if executing disabled command
This commit is contained in:
parent
5043fb1d0e
commit
a45afbadf5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue