mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 07:34:48 +01:00
We need to set cmdSuccess accordingly.
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
parent
5ba9ae942a
commit
023ff0a43d
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ public final class PluginCommand extends Command {
|
||||||
boolean cmdSuccess = false;
|
boolean cmdSuccess = false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
owningPlugin.onCommand(sender, this, commandLabel, args);
|
cmdSuccess = owningPlugin.onCommand(sender, this, commandLabel, args);
|
||||||
} catch (Throwable ex) {
|
} catch (Throwable ex) {
|
||||||
throw new CommandException("Unhandled exception executing command '" + commandLabel + "' in plugin " + owningPlugin.getDescription().getFullName(), ex);
|
throw new CommandException("Unhandled exception executing command '" + commandLabel + "' in plugin " + owningPlugin.getDescription().getFullName(), ex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue