Temporary fix for hook system
This commit is contained in:
parent
3aa85c751e
commit
994357fe8e
|
@ -1,6 +1,7 @@
|
||||||
package com.craftaro.skyblock.economy;
|
package com.craftaro.skyblock.economy;
|
||||||
|
|
||||||
import com.craftaro.core.hooks.Hook;
|
import com.craftaro.core.hooks.Hook;
|
||||||
|
import com.craftaro.core.hooks.OutdatedHookInterface;
|
||||||
import com.craftaro.core.hooks.economies.Economy;
|
import com.craftaro.core.hooks.economies.Economy;
|
||||||
import com.craftaro.skyblock.SkyBlock;
|
import com.craftaro.skyblock.SkyBlock;
|
||||||
import com.craftaro.skyblock.manager.Manager;
|
import com.craftaro.skyblock.manager.Manager;
|
||||||
|
@ -15,7 +16,7 @@ public class EconomyManager extends Manager {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEconomy(String economyString) {
|
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 &&
|
if (hook != null &&
|
||||||
hook.isEnabled() &&
|
hook.isEnabled() &&
|
||||||
hook instanceof Economy &&
|
hook instanceof Economy &&
|
||||||
|
|
Loading…
Reference in New Issue