Cleaned up Fillr

This commit is contained in:
Taylor Kelly
2011-01-10 06:05:43 +08:00
committed by Dinner Bone
parent 0b3a145785
commit 184d5744f3
6 changed files with 231 additions and 255 deletions

View File

@@ -10,7 +10,7 @@ import org.bukkit.plugin.InvalidPluginException;
public class Getter {
private Server server;
private static String directory = Fillr.directory;
private static String DIRECTORY = Fillr.DIRECTORY;
public Getter(Server server) {
this.server = server;
@@ -36,7 +36,7 @@ public class Getter {
private void enablePlugin(FillReader update) {
final String name = update.getName();
//TODO again with the implicit jar support...
File plugin = new File(directory, name + ".jar");
File plugin = new File(DIRECTORY, name + ".jar");
try {
server.getPluginManager().loadPlugin(plugin);
} catch (InvalidPluginException ex) {