mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 05:26:29 +01:00
Remove static modifier of economy
This commit is contained in:
parent
77baa789e6
commit
c562999f11
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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()) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user