mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
A wild Velocity 5.0.0 appears!
This commit is contained in:
@@ -534,14 +534,7 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
|
||||
shutdown = true;
|
||||
|
||||
if (explicitExit) {
|
||||
AccessController.doPrivileged(new PrivilegedAction<Void>() {
|
||||
@Override
|
||||
@SuppressFBWarnings("DM_EXIT")
|
||||
public Void run() {
|
||||
System.exit(0);
|
||||
return null;
|
||||
}
|
||||
});
|
||||
System.exit(0);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -82,8 +82,7 @@ public class JavaPluginLoader implements PluginLoader {
|
||||
}
|
||||
|
||||
URL pluginJarUrl = candidate.getSource().get().toUri().toURL();
|
||||
PluginClassLoader loader = AccessController.doPrivileged(
|
||||
(PrivilegedAction<PluginClassLoader>) () -> new PluginClassLoader(new URL[]{pluginJarUrl}));
|
||||
PluginClassLoader loader = new PluginClassLoader(new URL[]{pluginJarUrl});
|
||||
loader.addToClassloaders();
|
||||
|
||||
JavaVelocityPluginDescriptionCandidate candidateInst =
|
||||
|
||||
Reference in New Issue
Block a user