diff --git a/src/com/dre/dungeonsxl/DGroup.java b/src/com/dre/dungeonsxl/DGroup.java index e5c622a3..64626947 100644 --- a/src/com/dre/dungeonsxl/DGroup.java +++ b/src/com/dre/dungeonsxl/DGroup.java @@ -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()); } } } diff --git a/src/com/dre/dungeonsxl/P.java b/src/com/dre/dungeonsxl/P.java index d6560734..923331d9 100644 --- a/src/com/dre/dungeonsxl/P.java +++ b/src/com/dre/dungeonsxl/P.java @@ -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) { diff --git a/src/com/dre/dungeonsxl/game/GameWorld.java b/src/com/dre/dungeonsxl/game/GameWorld.java index 06030ae1..7bb7079d 100644 --- a/src/com/dre/dungeonsxl/game/GameWorld.java +++ b/src/com/dre/dungeonsxl/game/GameWorld.java @@ -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()) {