diff --git a/src/main/java/org/maxgamer/quickshop/watcher/OngoingFeeWatcher.java b/src/main/java/org/maxgamer/quickshop/watcher/OngoingFeeWatcher.java index 9e75c5cf6..dcf87132c 100644 --- a/src/main/java/org/maxgamer/quickshop/watcher/OngoingFeeWatcher.java +++ b/src/main/java/org/maxgamer/quickshop/watcher/OngoingFeeWatcher.java @@ -63,8 +63,7 @@ public class OngoingFeeWatcher extends BukkitRunnable { this.removeShop(shop); } else { try { - //noinspection ConstantConditions,deprecation - plugin.getEconomy().deposit(Bukkit.getOfflinePlayer(plugin.getConfig().getString("tax")).getUniqueId(), cost, shop.getLocation().getWorld(), shop.getCurrency()); + plugin.getEconomy().deposit(plugin.getShopManager().getCacheTaxAccount().getUniqueId(), cost, shop.getLocation().getWorld(), shop.getCurrency()); } catch (Exception ignored) { } }