diff --git a/src/main/java/net/Indyuce/mmocore/MMOCore.java b/src/main/java/net/Indyuce/mmocore/MMOCore.java index 7f74218a..7e61f9f6 100644 --- a/src/main/java/net/Indyuce/mmocore/MMOCore.java +++ b/src/main/java/net/Indyuce/mmocore/MMOCore.java @@ -31,6 +31,7 @@ import net.Indyuce.mmocore.command.QuestsCommand; import net.Indyuce.mmocore.command.SkillsCommand; import net.Indyuce.mmocore.command.WaypointsCommand; import net.Indyuce.mmocore.command.WithdrawCommand; +import net.Indyuce.mmocore.comp.MMOLibHook; import net.Indyuce.mmocore.comp.ShopKeepersEntityHandler; import net.Indyuce.mmocore.comp.citizens.CitizenInteractEventListener; import net.Indyuce.mmocore.comp.citizens.CitizensMMOLoader; @@ -159,6 +160,8 @@ public class MMOCore extends JavaPlugin { public void onEnable() { new Metrics(this); + + new MMOLibHook(); if (Bukkit.getPluginManager().getPlugin("Vault") != null) economy = new VaultEconomy(); diff --git a/src/main/java/net/Indyuce/mmocore/comp/MMOLibHook.java b/src/main/java/net/Indyuce/mmocore/comp/MMOLibHook.java index eaaf963d..86f9620f 100644 --- a/src/main/java/net/Indyuce/mmocore/comp/MMOLibHook.java +++ b/src/main/java/net/Indyuce/mmocore/comp/MMOLibHook.java @@ -23,7 +23,7 @@ public class MMOLibHook { StatMap.registerUpdate(SharedStat.ATTACK_DAMAGE, new AttributeStatHandler(Attribute.GENERIC_ATTACK_DAMAGE, StatType.ATTACK_DAMAGE)); StatMap.registerUpdate(SharedStat.ATTACK_SPEED, new AttributeStatHandler(Attribute.GENERIC_ATTACK_SPEED, StatType.ATTACK_SPEED)); StatMap.registerUpdate(SharedStat.KNOCKBACK_RESISTANCE, new AttributeStatHandler(Attribute.GENERIC_KNOCKBACK_RESISTANCE, StatType.KNOCKBACK_RESISTANCE)); - StatMap.registerUpdate(SharedStat.ARMOR, new AttributeStatHandler(Attribute.GENERIC_MAX_HEALTH, StatType.MAX_HEALTH)); + StatMap.registerUpdate(SharedStat.MAX_HEALTH, new AttributeStatHandler(Attribute.GENERIC_MAX_HEALTH, StatType.MAX_HEALTH)); Consumer moveSpeed = new MovementSpeedStat(); StatMap.registerUpdate(SharedStat.MOVEMENT_SPEED, moveSpeed);