Skip to content

Commit a6d1e84

Browse files
committed
move configuration reading out of loop
1 parent 2dfe88e commit a6d1e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ 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");
6364
for (Shop shop : plugin.getShopManager().getAllShops()) {
6465
if ((!shop.isUnlimited() || !ignoreUnlimited) && !shop.isDeleted()) {
6566
UUID shopOwner = shop.getOwner();
6667
Location location = shop.getLocation();
67-
double cost = plugin.getConfiguration().getDouble("shop.ongoing-fee.cost-per-shop");
6868
if (!location.isWorldLoaded()) {
6969
//ignore unloaded world
7070
continue;

0 commit comments

Comments
 (0)