Vault methods no longer static

This commit is contained in:
Morgan 2011-06-29 15:59:26 -04:00
parent 00c09c7f37
commit 5cc4c03950

View File

@ -29,29 +29,24 @@ import org.bukkit.plugin.java.JavaPlugin;
public class Vault extends JavaPlugin { public class Vault extends JavaPlugin {
private static final Logger log = Logger.getLogger("Minecraft"); private static final Logger log = Logger.getLogger("Minecraft");
private static EconomyManager econManager = null; private EconomyManager econManager = new EconomyManager(this);
private static PermissionManager permManager = null; private PermissionManager permManager = new PermissionManager(this);
@Override @Override
public void onDisable() { public void onDisable() {
econManager = null;
permManager = null;
log.info(String.format("[%s] Disabled Version %s", getDescription().getName(), getDescription().getVersion())); log.info(String.format("[%s] Disabled Version %s", getDescription().getName(), getDescription().getVersion()));
} }
@Override @Override
public void onEnable() { public void onEnable() {
econManager = new EconomyManager(this);
permManager = new PermissionManager(this);
log.info(String.format("[%s] Enabled Version %s", getDescription().getName(), getDescription().getVersion())); log.info(String.format("[%s] Enabled Version %s", getDescription().getName(), getDescription().getVersion()));
} }
public static EconomyManager getEconomy() { public EconomyManager getEconomy() {
return econManager; return econManager;
} }
public static PermissionManager getPermission() { public PermissionManager getPermission() {
return permManager; return permManager;
} }
} }