Posted July 8, 201411 yr Hello, I have one question. Is it possible to send a colored test message that could have a translation into different languages? If so, how? Currently I'm using event.player.addChatMessage(new ChatComponentTranslation("msg.config_update.name")); but that won't work. If I change the color, it will only print msg.config_update.name instead of the message in the color red. Bektor Developer of Primeval Forest.
July 8, 201411 yr Im guessing it's because you are using the "msg.config_update.name" as a String http://i.imgur.com/J2keQOC.png[/img]http://i.imgur.com/YHnvIfh.png[/img]
July 8, 201411 yr Author @Raizunne: No. @Bektor: How are you trying to change the color? event.player.addChatMessage(new ChatComponentTranslation(EnumChatFormatting.DARK_RED + "msg.config_update.name")); Developer of Primeval Forest.
July 8, 201411 yr event.player.addChatMessage(new ChatComponentTranslation("msg.config_update.name").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.DARK_RED)));
July 8, 201411 yr Author event.player.addChatMessage(new ChatComponentTranslation("msg.config_update.name").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.DARK_RED))); Thanks. That works! Developer of Primeval Forest.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.