Buggy code:
public class ChallengeLogic { private static final Pattern ITEM_AMOUNT_PATTERN = Pattern . compile ( "(?<id>[0-9]+)(:(?<data>[0-9]+))?:(?<amount>[0-9]+)" ) ; public static final int MS_MIN = 60 * 1000 ; public static final int MS_HOUR = 60 * ( ChallengeLogic . MS_MIN ) ; public static final long MS_DAY = 24 * ( ChallengeLogic . MS_HOUR ) ; private final FileConfiguration config ; private final uSkyBlock skyBlock ; private final Map < String , Rank > ranks ; public final ChallengeDefaults defaults ; public ChallengeLogic ( FileConfiguration config , uSkyBlock skyBlock ) { } private void load ( ) { } public List < Rank > getRanks ( ) { } public List < String > getAvailableChallengeNames ( PlayerInfo playerInfo ) { } public List < String > getAllChallengeNames ( ) { } public List < Challenge > getChallengesForRank ( String rank ) { } public boolean completeChallenge ( final Player player , final String challengeName ) { } public Challenge getChallenge ( String challengeName ) { } public static int calcAmount ( int amount , char op , int inc , int timesCompleted ) { } public boolean tryComplete ( final Player player , final String challenge , final String type ) { } private boolean tryCompleteIslandLevel ( Player player , Challenge challenge ) { } private boolean islandContains ( Player player , List < ItemStack > itemStacks , int radius ) { } private boolean tryCompleteOnIsland ( Player player , String challengeName ) { } private boolean hasEntitiesNear ( Player player , List < EntityMatch > requiredEntities , int radius ) { } private boolean tryCompleteOnPlayer ( Player player , String challengeName ) { } private int getCountOf ( PlayerInventory inventory , ItemStack required ) { } public boolean giveReward ( final Player player , final String challengeName ) { } private boolean giveReward ( Player player , Challenge challenge ) { String challengeName = challenge . getName ( ) ; World skyWorld = skyBlock . getWorld ( ) ; player . sendMessage ( ( ( ( ( ChatColor . GREEN ) + "You<seq2seq4repair_space>have<seq2seq4repair_space>completed<seq2seq4repair_space>the<seq2seq4repair_space>" ) + challengeName ) + "<seq2seq4repair_space>challenge!" ) ) ; PlayerInfo playerInfo = skyBlock . getPlayerInfo ( player ) ; Reward reward ; boolean isFirstCompletion = ( playerInfo . checkChallenge ( challengeName ) ) == 0 ; if ( isFirstCompletion ) { reward = challenge . getReward ( ) ; } else { reward = challenge . getRepeatReward ( ) ; } float rewBonus = 1 ; if ( ( defaults . enableEconomyPlugin ) && ( VaultHandler . hasEcon ( ) ) ) { if ( VaultHandler . checkPerk ( player . getName ( ) , "group.memberplus" , skyWorld ) ) { rewBonus += 0.05 ; } if ( VaultHandler . checkPerk ( player . getName ( ) , "usb.donor.all" , skyWorld ) ) { rewBonus += 0.05 ; } if ( VaultHandler . checkPerk ( player . getName ( ) , "usb.donor.25" , skyWorld ) ) { rewBonus += 0.05 ; } if ( VaultHandler . checkPerk ( player . getName ( ) , "usb.donor.50" , skyWorld ) ) { rewBonus += 0.05 ; } if ( VaultHandler . checkPerk ( player . getName ( ) , "usb.donor.75" , skyWorld ) ) { rewBonus += 0.1 ; } if ( VaultHandler . checkPerk ( player . getName ( ) , "usb.donor.100" , skyWorld ) ) { rewBonus += 0.2 ; } VaultHandler . depositPlayer ( player . getName ( ) , ( ( reward . getCurrencyReward ( ) ) * rewBonus ) ) ; } player . giveExp ( reward . getXpReward ( ) ) ; if ( ( defaults . broadcastCompletion ) && isFirstCompletion ) { Bukkit . getServer ( ) . broadcastMessage ( ( ( ( ( ( config . getString ( "broadcastText" ) ) + ( player . getName ( ) ) ) + "<seq2seq4repair_space>has<seq2seq4repair_space>completed<seq2seq4repair_space>the<seq2seq4repair_space>" ) + challengeName ) + "<seq2seq4repair_space>challenge!" ) ) ; } <START_BUG> player . sendMessage ( String . format ( "§eItem<seq2seq4repair_space>reward(s):<seq2seq4repair_space>§f%d" , reward . getRewardText ( ) ) ) ; <END_BUG> player . sendMessage ( String . format ( "§eExp<seq2seq4repair_space>reward:<seq2seq4repair_space>§f%d" , reward . getXpReward ( ) ) ) ; if ( VaultHandler . hasEcon ( ) ) { player . sendMessage ( String . format ( "§eCurrency<seq2seq4repair_space>reward:<seq2seq4repair_space>§f%5.2f<seq2seq4repair_space>%s<seq2seq4repair_space>§a<seq2seq4repair_space>(%4.2f%%)" , ( ( reward . getCurrencyReward ( ) ) * rewBonus ) , VaultHandler . getEcon ( ) . currencyNamePlural ( ) , ( ( rewBonus - 1.0 ) * 100.0 ) ) ) ; } if ( ( reward . getPermissionReward ( ) ) != null ) { for ( String perm : reward . getPermissionReward ( ) . split ( "<seq2seq4repair_space>" ) ) { if ( ! ( VaultHandler . checkPerm ( player , perm , player . getWorld ( ) ) ) ) { VaultHandler . addPerk ( player , perm ) ; } } } for ( String cmd : reward . getCommands ( ) ) { String command = cmd . replaceAll ( "\\{challenge\\}" , challengeName ) ; skyBlock . execCommand ( player , command ) ; } player . getInventory ( ) . addItem ( reward . getItemReward ( ) . toArray ( new ItemStack [ 0 ] ) ) ; playerInfo . completeChallenge ( challengeName ) ; return true ; } public long getResetInMillis ( String challenge ) { } public ItemStack getItemStack ( PlayerInfo playerInfo , String challengeName ) { } public static List < String > wordWrap ( String s , int firstSegment , int lineSize ) { } public void populateChallenges ( Map < String , ChallengeCompletion > challengeMap ) { } public void populateChallengeRank ( Inventory menu , Player player , PlayerInfo pi , int page ) { } public void populateChallengeRank ( Inventory menu , final Player player , final Rank rank , int location , final PlayerInfo playerInfo ) { } }

Fix:
player . sendMessage ( String . format ( "§eItem<seq2seq4repair_space>reward(s):<seq2seq4repair_space>§f%s" , reward . getRewardText ( ) ) ) ;