Catch throwable not exception for enabling plugins

This commit is contained in:
md_5 2013-04-28 17:45:25 +10:00
parent 82d5954f2f
commit 3682e8ba3a
2 changed files with 2 additions and 3 deletions

View File

@ -199,9 +199,9 @@ public class PluginManager
{
plugin.getDescription().getName(), plugin.getDescription().getVersion(), plugin.getDescription().getAuthor()
} );
} catch ( Exception ex )
} catch ( Throwable t )
{
ProxyServer.getInstance().getLogger().log( Level.WARNING, "Exception encountered when loading plugin: " + plugin.getDescription().getName(), ex );
ProxyServer.getInstance().getLogger().log( Level.WARNING, "Exception encountered when loading plugin: " + plugin.getDescription().getName(), t );
status = false;
}
}

View File

@ -14,7 +14,6 @@ import java.util.Collections;
import java.util.HashSet;
import java.util.Objects;
import java.util.logging.Level;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;