Plugin Help How do you do this?

Discussion in 'Plugin Help/Development/Requests' started by Jarnovdvelde, Oct 25, 2014.

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

    xyfonix

    I think it's using they send a packet or something for a music disk name without any sounds, but I'm not sure.
     
  2. But how can you change that?
     
  3. Offline

    kvq

    Code:java
    1. public static void sendActionBar(Player player, String message){
    2. CraftPlayer p = (CraftPlayer) player;
    3. if (p.getHandle().playerConnection.networkManager.getVersion() != 47) return;
    4. IChatBaseComponent cbc = ChatSerializer.a("{\"text\": \"" + message + "\"}");
    5. PacketPlayOutChat ppoc = new PacketPlayOutChat(cbc , 2);
    6. ((CraftPlayer) p).getHandle().playerConnection.sendPacket(ppoc);
    7. }
     
  4. Thnx!
     
Thread Status:
Not open for further replies.

Share This Page