Add support for custom class loaders. (#647)

This commit is contained in:
kyngs 2022-02-19 22:04:56 +01:00 committed by GitHub
parent 8ab071badb
commit 7bd0f9ea14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,8 @@
package com.velocitypowered.proxy.plugin;
import com.velocitypowered.proxy.Velocity;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
@ -34,7 +36,7 @@ public class PluginClassLoader extends URLClassLoader {
}
public PluginClassLoader(URL[] urls) {
super(urls);
super(urls, Velocity.class.getClassLoader());
}
public void addToClassloaders() {