Buggy code:
private int yellowScore = 0 ; private ScoreboardManager manager ; private Scoreboard board ; private Objective objective ; private Score timerScore ; public Game ( Integer id ) { } public void reloadConfig ( ) { } public void setup ( ) { } public void addSpawn ( ) { } public void loadspawns ( ) { } public int getGameID ( ) { } public void setLobby ( Lobby lobby ) { } public boolean isLobbySet ( ) { } public Lobby getLobby ( ) { } public void enable ( ) { } public void disable ( ) { } public boolean addPlayer ( Player p ) { } public void vote ( Player p ) { } public void startGame ( ) { } public void forceStartGame ( ) { } public int getCountdownTime ( ) { } int count = 20 ; int tid = 0 ; public void countdown ( int time ) { } public void removePlayer ( Player player , boolean b ) { } public void resetArena ( ) { } public void winGame ( ) { } public void endGame ( ) { } public boolean addSpectator ( Player p ) { } public boolean removeSpectator ( Player player , boolean logout ) { } public void addToTeam ( Player player ) { } public Team getTeam ( Player player ) { } public Team getTeam ( String teamName ) { } public String getTeamName ( Player player ) { } public int getTeamID ( Player player ) { } public void increaseScore ( int team , int amount ) { } public void decreaseScore ( int team , int amount ) { } public String scoreResults ( ) { } public byte getTeamBlockByte ( int teamId ) { } public boolean isBlockInArena ( Location v ) { } public boolean isBlockInLobby ( Location v ) { } public void resetCallback ( ) { } class GameTimer implements Runnable { int counter = SettingsManager . getInstance ( ) . getPluginConfig ( ) . getInt ( "game-length" , 600 ) ; int powerupDefault = SettingsManager . getInstance ( ) . getPluginConfig ( ) . getInt ( "powerup-freq" , 15 ) ; int powerup = powerupDefault ; @ Override public void run ( ) { if ( ( counter ) > 0 ) { -- ( counter ) ; timerScore . setScore ( counter ) ; } else { endGame ( ) ; } if ( ( counter ) <= 10 ) { msgFArena ( "game.time" , ( "time-" + ( counter ) ) ) ; } Random random = new Random ( ) ; if ( ( powerup ) == 0 ) { double x ; double y ; double z ; boolean finish = true ; int attempt = 1 ; while ( finish ) { x = ( ( random . nextInt ( ( ( ( arena . getPos1 ( ) . getBlockX ( ) ) - ( arena . getPos2 ( ) . getBlockX ( ) ) ) + 1 ) ) ) + ( arena . getPos2 ( ) . getBlockX ( ) ) ) + 0.5 ; y = ( random . nextInt ( ( ( ( arena . getPos1 ( ) . getBlockY ( ) ) - ( arena . getPos2 ( ) . getBlockY ( ) ) ) + 1 ) ) ) + ( arena . getPos2 ( ) . getBlockY ( ) ) ; z = ( ( random . nextInt ( ( ( ( arena . getPos1 ( ) . getBlockZ ( ) ) - ( arena . getPos2 ( ) . getBlockZ ( ) ) ) + 1 ) ) ) + ( arena . getPos2 ( ) . getBlockZ ( ) ) ) + 0.5 ; Location loc = new Location ( arena . getPos1 ( ) . getWorld ( ) , x , y , z ) ; Location loc2 = loc . clone ( ) ; loc2 . subtract ( 0 , 1 , 0 ) ; if ( SettingsManager . getInstance ( ) . getPluginConfig ( ) . getStringList ( "paintable-blocks" ) . contains ( loc2 . getBlock ( ) . getType ( ) . toString ( ) ) ) { if ( ( loc . getBlock ( ) . getType ( ) ) == ( Material . AIR ) ) { <START_BUG> createPowerup ( loc , true ) ; <END_BUG> finish = false ; } } if ( attempt == 100 ) { MessageManager . getInstance ( ) . debugConsole ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>spawn<seq2seq4repair_space>powerup." ) ; finish = false ; } else { attempt ++ ; } } powerup = powerupDefault ; } else { -- ( powerup ) ; } } } class ParticleTimer implements Runnable { @ Override public void run ( ) { if ( ( powerups . size ( ) ) > 0 ) { for ( Powerup pu : powerups ) { NOTE . display ( 0.2F , 0.5F , 0.2F , 1 , 10 , pu . getLocation ( ) , getAllPlayers ( ) ) ; } } } } public Location getLobbySpawn ( ) { } public Powerup createPowerup ( Location location , boolean spawn ) { } public Powerup createPowerup ( Location location , int type , boolean spawn ) { } public void changeBlock ( Location loc , int team ) { } public void scoreManagement ( int id , int teamincrease , int teamdecrease , int amount ) { } public List < Powerup > getPowerups ( ) { } public void removePowerup ( Powerup powerup ) { } public void setLobbySpawn ( int id , World world , int x , int y , int z ) { } public boolean isPlayerActive ( Player player ) { } public boolean isSpectator ( Player player ) { } public Game . Status getStatus ( ) { } public List < Player > getActivePlayers ( ) { }

Fix:
createPowerup ( loc2 , true ) ;