diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java index e209b71882..a320e49eea 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java +++ b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPluginLoader.java @@ -33,13 +33,13 @@ import org.yaml.snakeyaml.error.YAMLException; /** * Represents a Java plugin loader, allowing plugins in the form of .jar */ -public final class JavaPluginLoader implements PluginLoader { +public class JavaPluginLoader implements PluginLoader { private final Server server; - private final Pattern[] fileFilters = new Pattern[] { + protected final Pattern[] fileFilters = new Pattern[] { Pattern.compile("\\.jar$"), }; - private final Map> classes = new HashMap>(); - private final Map loaders = new HashMap(); + protected final Map> classes = new HashMap>(); + protected final Map loaders = new HashMap(); public JavaPluginLoader(Server instance) { server = instance; @@ -182,7 +182,7 @@ public final class JavaPluginLoader implements PluginLoader { return (Plugin) result; } - private File getDataFolder(File file) { + protected File getDataFolder(File file) { File dataFolder = null; String filename = file.getName();