mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 06:28:49 +00:00
fix: economy checks being used even if no hook loaded
This commit is contained in:
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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user