mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-22 02:25:28 +01:00
SPIGOT-6029: RGB Hex colors not respected with custom kick messages
This commit is contained in:
parent
7c03d257dd
commit
0458f6000b
@ -156,8 +156,8 @@
|
|||||||
+ }
|
+ }
|
||||||
+ // Send the possibly modified leave message
|
+ // Send the possibly modified leave message
|
||||||
+ s = event.getReason();
|
+ s = event.getReason();
|
||||||
|
+ final IChatBaseComponent ichatbasecomponent = CraftChatMessage.fromString(s, true)[0];
|
||||||
+ // CraftBukkit end
|
+ // CraftBukkit end
|
||||||
+ final ChatComponentText ichatbasecomponent = new ChatComponentText(s);
|
|
||||||
+
|
+
|
||||||
this.networkManager.sendPacket(new PacketPlayOutKickDisconnect(ichatbasecomponent), (future) -> {
|
this.networkManager.sendPacket(new PacketPlayOutKickDisconnect(ichatbasecomponent), (future) -> {
|
||||||
this.networkManager.close(ichatbasecomponent);
|
this.networkManager.close(ichatbasecomponent);
|
||||||
|
Loading…
Reference in New Issue
Block a user