mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-22 10:15:54 +01:00
Temporary fix for hook system
This commit is contained in:
parent
3aa85c751e
commit
994357fe8e
@ -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 &&
|
||||
|
Loading…
Reference in New Issue
Block a user