add support for MM skill damage

This commit is contained in:
Indyuce 2019-08-31 22:05:45 +02:00
parent aecba78020
commit 410d9bf263
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import net.Indyuce.mmocore.comp.rpg.damage.DamageHandler;
import net.Indyuce.mmocore.comp.rpg.damage.DamageInfo; import net.Indyuce.mmocore.comp.rpg.damage.DamageInfo;
import net.Indyuce.mmocore.comp.rpg.damage.DamageInfo.DamageType; import net.Indyuce.mmocore.comp.rpg.damage.DamageInfo.DamageType;
public class MythicMobsDamagerHandler implements DamageHandler { public class MythicMobsDamageHandler implements DamageHandler {
@Override @Override
public DamageInfo getDamage(Entity entity) { public DamageInfo getDamage(Entity entity) {

View File

@ -18,6 +18,7 @@ public class MythicMobsDrops implements Listener {
if (MMOCore.plugin.getConfig().getBoolean("lootsplosion.enabled")) if (MMOCore.plugin.getConfig().getBoolean("lootsplosion.enabled"))
Bukkit.getPluginManager().registerEvents(new Lootsplosion(), MMOCore.plugin); Bukkit.getPluginManager().registerEvents(new Lootsplosion(), MMOCore.plugin);
registerPlaceholders(); registerPlaceholders();
MMOCore.plugin.damage.registerHandler(new MythicMobsDamageHandler());
} }
@EventHandler @EventHandler