mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-26 18:47:42 +01:00
Close #1105 - don't let security manager get replaced
This commit is contained in:
parent
8ce26e0370
commit
2dd3d2101d
@ -54,5 +54,10 @@ public class BungeeSecurityManager extends SecurityManager
|
|||||||
@Override
|
@Override
|
||||||
public void checkPermission(Permission perm)
|
public void checkPermission(Permission perm)
|
||||||
{
|
{
|
||||||
|
switch ( perm.getName() )
|
||||||
|
{
|
||||||
|
case "setSecurityManager":
|
||||||
|
throw new AccessControlException( "Restricted Action", perm );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user