Add support for custom class loaders. (#647)
This commit is contained in:
@@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
package com.velocitypowered.proxy.plugin;
|
package com.velocitypowered.proxy.plugin;
|
||||||
|
|
||||||
|
import com.velocitypowered.proxy.Velocity;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
@@ -34,7 +36,7 @@ public class PluginClassLoader extends URLClassLoader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public PluginClassLoader(URL[] urls) {
|
public PluginClassLoader(URL[] urls) {
|
||||||
super(urls);
|
super(urls, Velocity.class.getClassLoader());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addToClassloaders() {
|
public void addToClassloaders() {
|
||||||
|
Reference in New Issue
Block a user