3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-03 01:50:07 +01:00

Wrap and unwrap.

Exceptions are fun.
Dieser Commit ist enthalten in:
wizjany 2019-05-29 21:38:37 -04:00
Ursprung 27b58f4e85
Commit ec3648e521
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -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
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 {
// these don't stick around between reload
loadAdapter();

Datei anzeigen

@ -76,6 +76,9 @@ public abstract class ExceptionConverterHelper implements ExceptionConverter {
if (e.getCause() instanceof 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, ImmutableList.of());
} catch (IllegalArgumentException | IllegalAccessException e) {
throw new CommandExecutionException(e, ImmutableList.of());