mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
We need to set cmdSuccess accordingly.
This commit is contained in:
parent
52954911bd
commit
a748069eb3
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public final class PluginCommand extends Command {
|
|||
boolean cmdSuccess = false;
|
||||
|
||||
try {
|
||||
owningPlugin.onCommand(sender, this, commandLabel, args);
|
||||
cmdSuccess = owningPlugin.onCommand(sender, this, commandLabel, args);
|
||||
} catch (Throwable ex) {
|
||||
throw new CommandException("Unhandled exception executing command '" + commandLabel + "' in plugin " + owningPlugin.getDescription().getFullName(), ex);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue