From 3fd400d31d5cd8ce310c078a3fb1f336847ab8a5 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 3 Sep 2011 20:46:04 +0100 Subject: [PATCH] Made JavaPluginLoader non-final By: Dinnerbone --- .../java/org/bukkit/plugin/java/JavaPluginLoader.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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();