Fix #1106 - plugins using ssl throwing exceptions

This commit is contained in:
md_5 2014-07-10 10:39:58 +10:00
parent 2dd3d2101d
commit 2444dd15ab

View File

@ -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 )
{