diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeSecurityManager.java b/proxy/src/main/java/net/md_5/bungee/BungeeSecurityManager.java index 047eb1ad..e5b6f183 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeSecurityManager.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeSecurityManager.java @@ -23,9 +23,19 @@ public class BungeeSecurityManager extends SecurityManager break; } + // Allow external packages from the system class loader to create threads. + if ( loader == null ) + { + if ( !context[i].getName().startsWith( "java.lang" ) ) + { + break; + } + } + // Everyone but system can't do anything if ( loader != null ) { + System.out.println( loader ); AccessControlException ex = new AccessControlException( "Plugin violation: " + text ); if ( ENFORCE ) {