From 67a384fa26c3a1ccfdca3ef4b6e4a7ee642fff05 Mon Sep 17 00:00:00 2001 From: Ghost_chu <2908803755@qq.com> Date: Tue, 29 Jun 2021 22:39:31 +0800 Subject: [PATCH] move to async thread --- .../java/org/maxgamer/quickshop/watcher/OngoingFeeWatcher.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) { } }