Skip to content

Commit

Permalink
Fixed summary message does not support Hex colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Despical committed Aug 28, 2024
1 parent bc1b048 commit 483f1a4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import me.despical.commons.miscellaneous.MiscUtils;
import me.despical.commons.serializer.InventorySerializer;
import me.despical.commons.string.StringFormatUtils;
import me.despical.commons.util.Strings;
import me.despical.tntrun.ConfigPreferences;
import me.despical.tntrun.Main;
import me.despical.tntrun.api.StatsStorage;
Expand Down Expand Up @@ -269,6 +270,6 @@ public BaseComponent[] formatSummaryPlaceholders(String msg, Arena arena, User u
formatted = formatted.replace("%player_" + (i + 1) + '%', winner.getName());
}

return builder.append(formatted.replace("&", "§")).create();
return builder.append(TextComponent.fromLegacy(Strings.format(formatted))).create();
}
}

0 comments on commit 483f1a4

Please sign in to comment.