forked from Upstream/mmocore
!Fixed comp issue with MMOLib
This commit is contained in:
parent
2c5309b417
commit
02246b2831
@ -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();
|
||||
|
@ -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<MMOData> moveSpeed = new MovementSpeedStat();
|
||||
StatMap.registerUpdate(SharedStat.MOVEMENT_SPEED, moveSpeed);
|
||||
|
Loading…
Reference in New Issue
Block a user