13
0
geforkt von Mirrors/Paper

Made JavaPluginLoader non-final

By: Dinnerbone <dinnerbone@dinnerbone.com>
Dieser Commit ist enthalten in:
Bukkit/Spigot 2011-09-03 20:46:04 +01:00
Ursprung 48bf69084d
Commit 3fd400d31d

Datei anzeigen

@ -33,13 +33,13 @@ import org.yaml.snakeyaml.error.YAMLException;
/** /**
* Represents a Java plugin loader, allowing plugins in the form of .jar * 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 Server server;
private final Pattern[] fileFilters = new Pattern[] { protected final Pattern[] fileFilters = new Pattern[] {
Pattern.compile("\\.jar$"), Pattern.compile("\\.jar$"),
}; };
private final Map<String, Class<?>> classes = new HashMap<String, Class<?>>(); protected final Map<String, Class<?>> classes = new HashMap<String, Class<?>>();
private final Map<String, PluginClassLoader> loaders = new HashMap<String, PluginClassLoader>(); protected final Map<String, PluginClassLoader> loaders = new HashMap<String, PluginClassLoader>();
public JavaPluginLoader(Server instance) { public JavaPluginLoader(Server instance) {
server = instance; server = instance;
@ -182,7 +182,7 @@ public final class JavaPluginLoader implements PluginLoader {
return (Plugin) result; return (Plugin) result;
} }
private File getDataFolder(File file) { protected File getDataFolder(File file) {
File dataFolder = null; File dataFolder = null;
String filename = file.getName(); String filename = file.getName();