We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08dba0b commit c564cf6Copy full SHA for c564cf6
src/main/resources/forge-1.20.1/procedures/world_send_chat.java.ftl
@@ -1,6 +1,6 @@
1
if (world instanceof ServerLevel _level) {
2
_level.getServer().getPlayerList().broadcastSystemMessage(Component.literal(${input$text})
3
- <#if (field$color!"#ffffff")?substring(1) != "ffffff">.withColor(0x${(field$color!"#ffffff")?substring(1)})</#if>
+ <#if (field$color!"#ffffff")?substring(1) != "ffffff">.withStyle(_s -> _s.withColor(0x${(field$color!"#ffffff")?substring(1)}))</#if>
4
<#if (field$bold!"false")?lower_case == "true">.withStyle(ChatFormatting.BOLD)</#if>
5
<#if (field$italic!"false")?lower_case == "true">.withStyle(ChatFormatting.ITALIC)</#if>
6
<#if (field$underlined!"false")?lower_case == "true">.withStyle(ChatFormatting.UNDERLINE)</#if>
0 commit comments