mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
We need to set cmdSuccess accordingly.
By: EvilSeph <evilseph@unaligned.org>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user