Skip to content

Commit 61f663f

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 0211c47 + 8ce9145 commit 61f663f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/maxgamer/quickshop/watcher/OngoingFeeWatcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void run() {
6060

6161
boolean allowLoan = plugin.getConfiguration().getBoolean("shop.allow-economy-loan");
6262
boolean ignoreUnlimited = plugin.getConfiguration().getBoolean("shop.ongoing-fee.ignore-unlimited");
63-
double cost = plugin.getConfiguration().getDouble("shop.ongoing-fee.cost-per-shop");
63+
double gobalCost = plugin.getConfiguration().getDouble("shop.ongoing-fee.cost-per-shop");
6464
for (Shop shop : plugin.getShopManager().getAllShops()) {
6565
if ((!shop.isUnlimited() || !ignoreUnlimited) && !shop.isDeleted()) {
6666
UUID shopOwner = shop.getOwner();
@@ -69,6 +69,7 @@ public void run() {
6969
//ignore unloaded world
7070
continue;
7171
}
72+
double cost=gobalCost;
7273
World world = location.getWorld();
7374
//We must check balance manually to avoid shop missing hell when tax account broken
7475
if (allowLoan || plugin.getEconomy().getBalance(shopOwner, Objects.requireNonNull(world), shop.getCurrency()) >= cost) {

0 commit comments

Comments
 (0)