clickevent shows command

Discussion in 'Plugin Development' started by Badwolf330, Oct 5, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Badwolf330

    Code:
    public void exampleJson(Player player) {
               IChatBaseComponent comp = ChatSerializer.a("{\"text\":\"§f[§3status§f] §7De ... is nu §2Geopend.\",\"extra\":[{\"text\":\" §7(Klik hier)\",\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§7Klik hier om naar de ... te gaan\"},\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/warp test\"}}]}");
               PacketPlayOutChat packet = new PacketPlayOutChat(comp, true);
               ((CraftPlayer) player).getHandle().playerConnection.sendPacket(packet);
    if I use this click event a will get warped, but if a use arrow-up i can see the warp how can i hide this? i realy need this for my theampark server thanks!
     
  2. Create a custom command that handles this and is only useable after the json is sent and after that not
     
  3. Offline

    Badwolf330

  4. As far as I know, no
     
Thread Status:
Not open for further replies.

Share This Page