Remove static modifier of economy

This commit is contained in:
Daniel Saukel 2015-08-12 15:02:06 +02:00
parent 77baa789e6
commit c562999f11
3 changed files with 5 additions and 5 deletions

View File

@ -68,7 +68,7 @@ public class DGroup {
if (file != null) {
DConfig confReader = new DConfig(file);
if (confReader != null) {
P.economy.withdrawPlayer(player, confReader.getFee());
P.p.economy.withdrawPlayer(player, confReader.getFee());
}
}
}

View File

@ -224,7 +224,7 @@ public class P extends JavaPlugin {
}
// Economy
public static Economy economy = null;
public Economy economy = null;
private Boolean setupEconomy() {
if (mainConfig.enableEconomy) {

View File

@ -161,13 +161,13 @@ public class GameWorld {
}
DConfig config = new DConfig(new File(p.getDataFolder() + "/dungeons/" + dungeon, "config.yml"));
if (p.mainConfig.enableEconomy) {
if (!(P.economy.getBalance(player) >= config.getFee())) {
if (!(P.p.economy.getBalance(player) >= config.getFee())) {
return false;
}
}
if (config.getFinished() != null && config.getFinishedAll() != null) {
if (!config.getFinished().isEmpty()) {