Temporary fix for hook system

This commit is contained in:
ceze88 2024-02-12 22:41:02 +01:00
parent 3aa85c751e
commit 994357fe8e

View File

@ -1,6 +1,7 @@
package com.craftaro.skyblock.economy;
import com.craftaro.core.hooks.Hook;
import com.craftaro.core.hooks.OutdatedHookInterface;
import com.craftaro.core.hooks.economies.Economy;
import com.craftaro.skyblock.SkyBlock;
import com.craftaro.skyblock.manager.Manager;
@ -15,7 +16,7 @@ public class EconomyManager extends Manager {
}
public void setEconomy(String economyString) {
Hook hook = com.craftaro.core.hooks.EconomyManager.getManager().getHook(economyString);
OutdatedHookInterface hook = com.craftaro.core.hooks.EconomyManager.getManager().getHook(economyString);
if (hook != null &&
hook.isEnabled() &&
hook instanceof Economy &&