Catch exceptions when disabling plugins
This commit is contained in:
parent
d8c92cd311
commit
c352e854ee
@ -359,8 +359,15 @@ public class BungeeCord extends ProxyServer
|
||||
// TODO: Fix this shit
|
||||
getLogger().info( "Disabling plugins" );
|
||||
for ( Plugin plugin : pluginManager.getPlugins() )
|
||||
{
|
||||
try
|
||||
{
|
||||
plugin.onDisable();
|
||||
} catch (Throwable t)
|
||||
{
|
||||
getLogger().severe( "Exception disabling plugin " + plugin.getDescription().getName() );
|
||||
t.printStackTrace();
|
||||
}
|
||||
getScheduler().cancel( plugin );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user