mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2024-11-28 13:15:23 +01:00
Fix town creation cost in economy mode. Fixes #289
This commit is contained in:
parent
ba722f7e52
commit
ff974c216d
@ -2916,7 +2916,7 @@ public ClaimResult build() {
|
||||
}
|
||||
}
|
||||
|
||||
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 ClaimResult build() {
|
||||
}
|
||||
}
|
||||
|
||||
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
Block a user