Buggy code:
} sendAttackBroadcast ( "Now<seq2seq4repair_space>wasn't<seq2seq4repair_space>that<seq2seq4repair_space>fun?" , AttackSeverity . INFO ) ; activeAttacks . remove ( ShnugglesPrimeAttack . TANGO_TIME ) ; } ) . submit ( SkreePlugin . inst ( ) ) ; break ; case EVERLASTING : if ( ! ( damageHeals ) ) { activeAttacks . add ( EVERLASTING ) ; sendAttackBroadcast ( "I<seq2seq4repair_space>am<seq2seq4repair_space>everlasting!" , ShnugglesPrimeInstance . AttackSeverity . NORMAL ) ; damageHeals = true ; Task . builder ( ) . delay ( 12 , TimeUnit . SECONDS ) . execute ( ( ) -> { if ( damageHeals ) { damageHeals = false ; if ( ! ( isBossSpawned ( ) ) ) return ; sendAttackBroadcast ( "Thank<seq2seq4repair_space>you<seq2seq4repair_space>for<seq2seq4repair_space>your<seq2seq4repair_space>assistance." , AttackSeverity . INFO ) ; } activeAttacks . remove ( ShnugglesPrimeAttack . EVERLASTING ) ; } ) . submit ( SkreePlugin . inst ( ) ) ; break ; } runRandomAttack ( ) ; return ; case FIRE : sendAttackBroadcast ( "Fire<seq2seq4repair_space>is<seq2seq4repair_space>your<seq2seq4repair_space>friend..." , ShnugglesPrimeInstance . AttackSeverity . NORMAL ) ; for ( Player player : contained ) { player . offer ( FIRE_TICKS , ( 20 * 30 ) ) ; } break ; case BASK_IN_MY_GLORY : if ( ! ( damageHeals ) ) { sendAttackBroadcast ( "Bask<seq2seq4repair_space>in<seq2seq4repair_space>my<seq2seq4repair_space>glory!" , ShnugglesPrimeInstance . AttackSeverity . ULTIMATE ) ; activeAttacks . add ( BASK_IN_MY_GLORY ) ; Task . builder ( ) . delay ( 7 , TimeUnit . SECONDS ) . execute ( ( ) -> { if ( ! ( isBossSpawned ( ) ) ) return ; boolean baskInGlory = false ; for ( Player player : getContained ( . class ) ) { if ( ( ( EntityGiantZombie ) ( boss ) ) . canEntityBeSeen ( tf ( player ) ) ) { player . sendMessage ( Text . of ( TextColors . DARK_RED , "You!" ) ) ; baskInGlory = true ; } } if ( baskInGlory ) { damageHeals = true ; spawnPts . stream ( ) . filter ( ( pt ) -> Probability . getChance ( 12 ) ) . forEach ( ( pt ) -> { Explosion explosion = Explosion . builder ( ) . shouldBreakBlocks ( false ) . origin ( pt . getPosition ( ) ) . radius ( 10 ) . world ( getRegion ( ) . getExtent ( ) ) . build ( ) ; getRegion ( ) . getExtent ( ) . triggerExplosion ( explosion ) ; } ) ; Task . builder ( ) . delay ( 500 , TimeUnit . MILLISECONDS ) . execute ( ( ) -> { damageHeals = false ; } ) . submit ( SkreePlugin . inst ( ) ) ; return ; } sendAttackBroadcast ( "Gah...<seq2seq4repair_space>Afraid<seq2seq4repair_space>are<seq2seq4repair_space>you<seq2seq4repair_space>friends?" , AttackSeverity . INFO ) ; activeAttacks . remove ( ShnugglesPrimeAttack . BASK_IN_MY_GLORY ) ; } ) . submit ( SkreePlugin . inst ( ) ) ; break ; } runRandomAttack ( ) ; break ; case DARK_POTIONS : sendAttackBroadcast ( "Unleash<seq2seq4repair_space>the<seq2seq4repair_space>inner<seq2seq4repair_space>darkness!" , ShnugglesPrimeInstance . AttackSeverity . NORMAL ) ; PotionEffect instantDamageEffect = PotionEffect . of ( INSTANT_DAMAGE , 0 , 1 ) ; for ( Living entity : getContained ( Zombie . class ) ) { if ( ! ( Probability . getChance ( 5 ) ) ) { continue ; } entity . offer ( HEALTH , 0.0 ) ; Location targetLoc = entity . getLocation ( ) ; Optional < Entity > optEntity = getRegion ( ) . getExtent ( ) . createEntity ( SPLASH_POTION , targetLoc . getPosition ( ) ) ; if ( optEntity . isPresent ( ) ) { Entity potion = optEntity . get ( ) ; potion . offer ( POTION_EFFECTS , Lists . newArrayList ( instantDamageEffect ) ) ; <START_BUG> getRegion ( ) . getExtent ( ) . spawnEntity ( entity , Cause . source ( SpawnCause . builder ( ) . type ( PLUGIN ) . build ( ) ) . build ( ) ) ; <END_BUG> } } return ; case MINION_LEECH : sendAttackBroadcast ( "My<seq2seq4repair_space>minions<seq2seq4repair_space>our<seq2seq4repair_space>time<seq2seq4repair_space>is<seq2seq4repair_space>now!" , ShnugglesPrimeInstance . AttackSeverity . ULTIMATE ) ; activeAttacks . add ( MINION_LEECH ) ; IntegratedRunnable minionEater = new IntegratedRunnable ( ) { @ Override public boolean run ( int times ) { if ( ! ( isBossSpawned ( ) ) ) return true ; for ( Living entity : getContained ( Living . class ) ) { if ( ( ( entity instanceof Giant ) || ( ! ( Probability . getChance ( 5 ) ) ) ) || ( ! ( ( ( EntityGiantZombie ) ( boss ) ) . canEntityBeSeen ( ( ( EntityLiving ) ( entity ) ) ) ) ) ) { continue ; } double realDamage = entity . get ( HEALTH ) . get ( ) ; if ( ( entity instanceof Zombie ) && ( ( ( net . minecraft . entity . monster . EntityZombie ) ( entity ) ) . isChild ( ) ) ) { entity . offer ( HEALTH , 0.0 ) ; } else { DamageSource source = DamageSource . builder ( ) . type ( ATTACK ) . build ( ) ; entity . damage ( realDamage , source , Cause . source ( boss ) . build ( ) ) ; } toHeal += realDamage // 3 ; } if ( new TimeFilter ( ( - 1 ) , 2 ) . matchesFilter ( ( times + 1 ) ) ) { getPlayerMessageChannel ( SPECTATOR ) . send ( Text . of ( DARK_AQUA , ( ( "The<seq2seq4repair_space>boss<seq2seq4repair_space>has<seq2seq4repair_space>drawn<seq2seq4repair_space>in:<seq2seq4repair_space>" + ( ( int ) ( toHeal ) ) ) + "<seq2seq4repair_space>health." ) ) ) ; } return true ; } @ Override public void end ( ) { if ( ! ( isBossSpawned ( ) ) ) return ; heal ( boss , toHeal ) ; toHeal = 0 ; sendAttackBroadcast ( "Thank<seq2seq4repair_space>you<seq2seq4repair_space>my<seq2seq4repair_space>minions!" , ShnugglesPrimeInstance . AttackSeverity . INFO ) ; printBossHealth ( ) ; activeAttacks . remove ( MINION_LEECH ) ; } } ;

Fix:
getRegion ( ) . getExtent ( ) . spawnEntity ( potion , Cause . source ( SpawnCause . builder ( ) . type ( PLUGIN ) . build ( ) ) . build ( ) ) ;