Convert nether listener to spawn boss portals with the new boss event system
This commit is contained in:
parent
150f1d1de9
commit
3ea378110c
@ -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));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user