Fix town creation cost in economy mode. Fixes #289
This commit is contained in:
parent
ba722f7e52
commit
ff974c216d
|
@ -2916,7 +2916,7 @@ public class GDClaim implements Claim {
|
|||
}
|
||||
}
|
||||
|
||||
if (!GriefDefenderPlugin.getInstance().isEconomyModeEnabled() && claim.isTown() && player != null) {
|
||||
if (claim.isTown() && player != null) {
|
||||
final double townCost = GriefDefenderPlugin.getGlobalConfig().getConfig().town.cost;
|
||||
if (townCost > 0) {
|
||||
final Economy economy = GriefDefenderPlugin.getInstance().getVaultProvider().getApi();
|
||||
|
|
|
@ -2962,7 +2962,7 @@ public class GDClaim implements Claim {
|
|||
}
|
||||
}
|
||||
|
||||
if (!GriefDefenderPlugin.getInstance().isEconomyModeEnabled() && claim.isTown() && player != null) {
|
||||
if (claim.isTown() && player != null) {
|
||||
final double townCost = GriefDefenderPlugin.getGlobalConfig().getConfig().town.cost;
|
||||
if (townCost > 0) {
|
||||
Account playerAccount = GriefDefenderPlugin.getInstance().economyService.get().getOrCreateAccount(player.getUniqueId()).orElse(null);
|
||||
|
|
Loading…
Reference in New Issue