mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-11-27 04:55:33 +01:00
Vault methods no longer static
This commit is contained in:
parent
00c09c7f37
commit
5cc4c03950
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user