Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IChatBaseComponent comp = ChatSerializer.a("{\"text\":\"message non cliquable dans le chat : \",\"extra\":[{\"text\":\"§bmessage cliquable\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§cDescription du message\"},\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/commande"\"}}]}");
- PacketPlayOutChat packet = new PacketPlayOutChat(comp);
- ((CraftPlayer) p).getHandle().playerConnection.sendPacket(packet);
Advertisement
Add Comment
Please, Sign In to add comment