@@ -143,8 +143,11 @@ protected List<String> generateChallengeDescription(Challenge challenge, @Nullab
143143 String description = this .user
144144 .getTranslationOrNothing (Constants .CHALLENGES_CHALLENGES + challenge .getUniqueId () + ".description" );
145145 if (description .isEmpty ()) {
146- // Combine the challenge description list into a single string and translate color codes
147- description = Util .translateColorCodes (String .join ("\n " , challenge .getDescription ()));
146+ // Combine the challenge description list into a single string, apply the configured
147+ // default colour to each line, and translate color codes.
148+ description = Util .translateColorCodes (Utils .applyDefaultColor (
149+ String .join ("\n " , challenge .getDescription ()),
150+ this .addon .getChallengesSettings ().getDescriptionColor ()));
148151 }
149152 // Replace any [label] placeholder with the actual top label
150153 description = description .replace ("[label]" , this .topLabel );
@@ -707,7 +710,9 @@ private String generateRepeatReward(Challenge challenge) {
707710 .getTranslationOrNothing (Constants .CHALLENGES_CHALLENGES + challenge .getUniqueId () + ".repeat-reward-text" );
708711
709712 if (rewardText .isEmpty ()) {
710- rewardText = wrapToWidth (Util .translateColorCodes (String .join ("\n " , challenge .getRepeatRewardText ())), 30 );
713+ rewardText = wrapToWidth (Util .translateColorCodes (Utils .applyDefaultColor (
714+ String .join ("\n " , challenge .getRepeatRewardText ()),
715+ this .addon .getChallengesSettings ().getRewardTextColor ())), 30 );
711716 }
712717
713718 return this .user .getTranslationOrNothing (reference + "lore" , Constants .PARAMETER_TEXT , rewardText , Constants .PARAMETER_ITEMS , items ,
@@ -786,7 +791,9 @@ private String generateReward(Challenge challenge) {
786791 .getTranslationOrNothing (Constants .CHALLENGES_CHALLENGES + challenge .getUniqueId () + ".reward-text" );
787792
788793 if (rewardText .isEmpty ()) {
789- rewardText = wrapToWidth (Util .translateColorCodes (String .join ("\n " , challenge .getRewardText ())), 30 );
794+ rewardText = wrapToWidth (Util .translateColorCodes (Utils .applyDefaultColor (
795+ String .join ("\n " , challenge .getRewardText ()),
796+ this .addon .getChallengesSettings ().getRewardTextColor ())), 30 );
790797 }
791798
792799 return this .user .getTranslationOrNothing (reference + "lore" , Constants .PARAMETER_TEXT , rewardText , Constants .PARAMETER_ITEMS , items ,
0 commit comments