Posted October 16, 201410 yr Only half of the chat message seems to appear lime green! What do I need to add to this code? This is how it is right now! MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.GREEN + player.getDisplayName() + " successfully completed the 'Poop Eating Challenge' and was rewarded an emerald!!"));
October 16, 201410 yr MinecraftServer.getServer().getConfigurationManager().sendChatMsg(new ChatComponentText(EnumChatFormatting.GREEN + player.getDisplayName() + EnumChatFormatting.GREEN + " successfully completed the 'Poop Eating Challenge' and was rewarded an emerald!!"));
October 16, 201410 yr Author https://trello-attachments.s3.amazonaws.com/5438d9c3c447aba7ca5ce58f/1920x1018/5d9f6ef2a542e7916305c6b5bb9c2a3a/2014-10-14_20.00.58.png There is a screenshot here
October 16, 201410 yr http://www.minecraftforge.net/forum/index.php/topic,24200.msg123004.html#msg123004 It doesn't work?
October 16, 201410 yr Also test this: MinecraftServer.getServer().getConfigurationManager().sendChatMsg( new ChatComponentText(player.getDisplayName() + " successfully completed the 'Poop Eating Challenge' and was rewarded an emerald!!").setChatStyle(new ChatStyle().setColor(EnumChatFormatting.GREEN))); UPD: Yup, it works. http://up42.ru/u/p/2014-10-16_20.17.42.png[/img]
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.