mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
Fix legacy error message output for WorldGuard commands (#2023)
This commit is contained in:
parent
fb50324767
commit
e485433805
@ -78,7 +78,7 @@ public void convert(Throwable t) throws CommandException {
|
||||
throw (CommandException) e.getCause();
|
||||
}
|
||||
if (e.getCause() instanceof com.sk89q.minecraft.util.commands.CommandException) {
|
||||
throw new CommandException(e.getCause(), ImmutableList.of());
|
||||
throw new CommandExecutionException(e.getCause(), ImmutableList.of());
|
||||
}
|
||||
throw new CommandExecutionException(e, ImmutableList.of());
|
||||
} catch (IllegalArgumentException | IllegalAccessException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user