Convert nether listener to spawn boss portals with the new boss event system

This commit is contained in:
AlexTheCoder 2017-04-23 22:50:40 -04:00
parent 150f1d1de9
commit 3ea378110c

View File

@ -52,11 +52,8 @@ import mineplex.game.clans.clans.nether.command.ForceTeleportCommand;
import mineplex.game.clans.clans.nether.command.PortalCommand;
import mineplex.game.clans.clans.nether.data.ClaimData;
import mineplex.game.clans.clans.nether.miniboss.NetherMinibossManager;
import mineplex.game.clans.clans.worldevent.boss.BossDeathEvent;
import mineplex.game.clans.spawn.Spawn;
import mineplex.minecraft.game.core.boss.EventCreatureDeathEvent;
import mineplex.minecraft.game.core.boss.broodmother.SpiderCreature;
import mineplex.minecraft.game.core.boss.ironwizard.GolemCreature;
import mineplex.minecraft.game.core.boss.skeletonking.SkeletonCreature;
/**
* Manager for all nether features
@ -565,11 +562,8 @@ public class NetherManager extends MiniPlugin
}
@EventHandler
public void onBossDeath(EventCreatureDeathEvent event)
public void onBossDeath(BossDeathEvent event)
{
if (event.getCreature() instanceof GolemCreature || event.getCreature() instanceof SkeletonCreature || event.getCreature() instanceof SpiderCreature)
{
spawnBossPortal(event.getCreature().getEvent().getCenterLocation().clone().subtract(0, 1, 0));
}
spawnBossPortal(event.getEvent().getCenterLocation().clone().subtract(0, 1, 0));
}
}