Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-11-17 05:20:14 +01:00
Add support for custom class loaders. (#647)
Dieser Commit ist enthalten in:
Ursprung
8ab071badb
Commit
7bd0f9ea14
@ -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() {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren