From 95169d476505c6cd70e01e1742584459f684da59 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Fri, 12 Dec 2014 21:46:12 +0000 Subject: [PATCH] Use CraftChatMessage.fromComponent so that colors remain in sent messages --- nms-patches/PlayerList.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nms-patches/PlayerList.patch b/nms-patches/PlayerList.patch index db13eeddf5..a3fcd0ff0e 100644 --- a/nms-patches/PlayerList.patch +++ b/nms-patches/PlayerList.patch @@ -1,5 +1,5 @@ ---- ../work/decompile-8eb82bde/net/minecraft/server/PlayerList.java 2014-12-12 18:19:41.309646027 +1100 -+++ src/main/java/net/minecraft/server/PlayerList.java 2014-12-12 18:19:21.681773582 +1100 +--- ../work/decompile-8eb82bde/net/minecraft/server/PlayerList.java 2014-12-12 21:45:59.845822542 +0000 ++++ src/main/java/net/minecraft/server/PlayerList.java 2014-12-12 21:44:44.381823361 +0000 @@ -18,6 +18,26 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; @@ -820,7 +820,7 @@ - this.sendAll(new PacketPlayOutChat(ichatbasecomponent, (byte) i)); + // CraftBukkit start - we run this through our processor first so we can get web links etc + // PAIL: Rename -+ for (IChatBaseComponent component : CraftChatMessage.fromString(ichatbasecomponent.c())) { ++ for (IChatBaseComponent component : CraftChatMessage.fromString(CraftChatMessage.fromComponent(ichatbasecomponent))) { + this.sendAll(new PacketPlayOutChat(component, (byte) i)); + } + // CraftBukkit end