Compare commits
	
		
			1 Commits
		
	
	
		
			87b3d814dd
			...
			patch-loop
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 6949470e3b | 
| @@ -19,14 +19,18 @@ public class BungeeSecurityManager extends SecurityManager | ||||
|     private void checkRestricted(String text) | ||||
|     { | ||||
|         Class[] context = getClassContext(); | ||||
|         for ( int i = 2; i < context.length; i++ ) | ||||
|         int i = 2; | ||||
|         if ( i >= context.length ) | ||||
|         { | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         ClassLoader loader = context[i].getClassLoader(); | ||||
|  | ||||
|         // Bungee / system can do everything | ||||
|         if ( loader == ClassLoader.getSystemClassLoader() || loader == null ) | ||||
|         { | ||||
|                 break; | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         AccessControlException ex = new AccessControlException( "Plugin violation: " + text ); | ||||
| @@ -41,8 +45,6 @@ public class BungeeSecurityManager extends SecurityManager | ||||
|         { | ||||
|             ProxyServer.getInstance().getLogger().log( Level.WARNING, "Plugin performed restricted action, please inform them to use proper API methods: " + text, ex ); | ||||
|         } | ||||
|             break; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|   | ||||
		Reference in New Issue
	
	Block a user