mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 18:09:41 -05:00
Fully restrict the org.bukkit and net.minecraft namespace
By: Wesley Wolfe <weswolf@aol.com>
This commit is contained in:
1 parent
a0438b2a20
commit
9b80392085
1 file changed
+3
@@ -30,6 +30,9 @@ public class PluginClassLoader extends URLClassLoader {
|
||||
}
|
||||
|
||||
protected Class<?> findClass(String name, boolean checkGlobal) throws ClassNotFoundException {
|
||||
if (name.startsWith("org.bukkit.") || name.startsWith("net.minecraft.")) {
|
||||
throw new ClassNotFoundException(name);
|
||||
}
|
||||
Class<?> result = classes.get(name);
|
||||
|
||||
if (result == null) {
|
||||
|
||||
Reference in new issue
Block a user