diff --git a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncTask.java b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncTask.java index f3da84a920..336519c687 100644 --- a/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncTask.java +++ b/src/main/java/org/bukkit/craftbukkit/scheduler/CraftAsyncTask.java @@ -3,12 +3,11 @@ package org.bukkit.craftbukkit.scheduler; import java.util.Iterator; import java.util.LinkedList; import java.util.Map; +import java.util.logging.Level; -import org.apache.commons.lang.UnhandledException; import org.bukkit.plugin.Plugin; import org.bukkit.scheduler.BukkitWorker; - class CraftAsyncTask extends CraftTask { private final LinkedList workers = new LinkedList(); @@ -53,7 +52,8 @@ class CraftAsyncTask extends CraftTask { super.run(); } catch (final Throwable t) { thrown = t; - throw new UnhandledException( + getOwner().getLogger().log( + Level.WARNING, String.format( "Plugin %s generated an exception while executing task %s", getOwner().getDescription().getFullName(),