mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Wrap and unwrap.
Exceptions are fun.
This commit is contained in:
parent
27b58f4e85
commit
ec3648e521
@ -131,7 +131,7 @@ public class WorldEditPlugin extends JavaPlugin implements TabCompleter {
|
|||||||
|
|
||||||
// register this so we can load world-dependent data right as the first world is loading
|
// register this so we can load world-dependent data right as the first world is loading
|
||||||
if (worldInitListener != null) {
|
if (worldInitListener != null) {
|
||||||
getLogger().warning("Server reload detected. This may cause various issues with WorldEdit and dependant plugins.");
|
getLogger().warning("Server reload detected. This may cause various issues with WorldEdit and dependent plugins.");
|
||||||
try {
|
try {
|
||||||
// these don't stick around between reload
|
// these don't stick around between reload
|
||||||
loadAdapter();
|
loadAdapter();
|
||||||
|
@ -76,6 +76,9 @@ public abstract class ExceptionConverterHelper implements ExceptionConverter {
|
|||||||
if (e.getCause() instanceof CommandException) {
|
if (e.getCause() instanceof CommandException) {
|
||||||
throw (CommandException) e.getCause();
|
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, ImmutableList.of());
|
throw new CommandExecutionException(e, ImmutableList.of());
|
||||||
} catch (IllegalArgumentException | IllegalAccessException e) {
|
} catch (IllegalArgumentException | IllegalAccessException e) {
|
||||||
throw new CommandExecutionException(e, ImmutableList.of());
|
throw new CommandExecutionException(e, ImmutableList.of());
|
||||||
|
Loading…
Reference in New Issue
Block a user