mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
SPIGOT-6029: RGB Hex colors not respected with custom kick messages
By: md_5 <git@md-5.net>
This commit is contained in:
parent
2b52833726
commit
f816dd6f41
1 changed files with 1 additions and 1 deletions
|
@ -156,8 +156,8 @@
|
|||
+ }
|
||||
+ // Send the possibly modified leave message
|
||||
+ s = event.getReason();
|
||||
+ final IChatBaseComponent ichatbasecomponent = CraftChatMessage.fromString(s, true)[0];
|
||||
+ // CraftBukkit end
|
||||
+ final ChatComponentText ichatbasecomponent = new ChatComponentText(s);
|
||||
+
|
||||
this.networkManager.sendPacket(new PacketPlayOutKickDisconnect(ichatbasecomponent), (future) -> {
|
||||
this.networkManager.close(ichatbasecomponent);
|
||||
|
|
Loading…
Reference in a new issue