Don't throw commands if the plugin is disabled
This commit is contained in:
parent
1de6f5bef8
commit
0b35cd8127
@ -27,6 +27,10 @@ public final class PluginCommand extends Command {
|
||||
public boolean execute(CommandSender sender, String commandLabel, String[] args) {
|
||||
boolean success = false;
|
||||
|
||||
if (!owningPlugin.isEnabled()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
success = executor.onCommand(sender, this, commandLabel, args);
|
||||
} catch (Throwable ex) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user