Skip to content

Commit

Permalink
Plugin option for remap-guava option
Browse files Browse the repository at this point in the history
  • Loading branch information
gravit0 committed Apr 16, 2024
1 parent 493eacb commit 9f1bd6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions patches/org/bukkit/plugin/java/PluginClassLoader.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
PluginClassLoader(final JavaPluginLoader loader, final ClassLoader parent, final PluginDescriptionFile description, final File dataFolder, final File file) throws InvalidPluginException, MalformedURLException {
super(new URL[] {file.toURI().toURL()}, parent);
Validate.notNull(loader, "Loader cannot be null");
@@ -34,6 +77,115 @@
@@ -34,6 +77,116 @@
this.dataFolder = dataFolder;
this.file = file;

Expand Down Expand Up @@ -125,6 +125,7 @@
+ reflectFields = MinecraftServer.cauldronConfig.getBoolean("plugin-settings."+pluginName+".remap-reflect-field", reflectFields, false);
+ reflectClass = MinecraftServer.cauldronConfig.getBoolean("plugin-settings."+pluginName+".remap-reflect-class", reflectClass, false);
+ allowFuture = MinecraftServer.cauldronConfig.getBoolean("plugin-settings."+pluginName+".remap-allow-future", allowFuture, false);
+ remapGuava = MinecraftServer.cauldronConfig.getBoolean("plugin-settings."+pluginName+".remap-guava", remapGuava, false);
+
+ if (debug) {
+ System.out.println("PluginClassLoader debugging enabled for "+pluginName);
Expand Down Expand Up @@ -191,7 +192,7 @@
try {
Class<?> jarClass;
try {
@@ -58,34 +210,288 @@
@@ -58,34 +211,288 @@
}

@Override
Expand Down

0 comments on commit 9f1bd6b

Please sign in to comment.