fix: economy checks being used even if no hook loaded

This commit is contained in:
William278 committed 2025-02-14 13:22:13 +00:00
1 parent 3a56b85ba5
commit 230827512f
4 files changed
+17 -4

No files matched your search

@@ -168,6 +168,15 @@ public interface TransactionResolver {
return getPlugin().getHook(EconomyHook.class);
}
/**
* Return whether to use the economy hook
*
* @return {@code true} if the economy hook is in use
*/
default boolean isUsingEconomy() {
return getPlugin().getSettings().getEconomy().isEnabled() && getEconomyHook().isPresent();
}
@NotNull
HuskHomes getPlugin();