move to async thread

This commit is contained in:
Ghost_chu committed 2021-06-29 22:39:31 +08:00
1 parent 199bc09542
commit 67a384fa26
1 file changed
+1 -2
@@ -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) {
}
}