File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/java/org/maxgamer/quickshop/watcher Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments