Solved Dynamic Titles

Discussion in 'Plugin Development' started by baighxansgaming, Oct 7, 2015.

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

    baighxansgaming

    Code (open)
    Code:
    PacketPlayOutTitle title = new PacketPlayOutTitle(EnumTitleAction.TITLE, ChatSerializer.a("{\"text\":\"§bYou Opened a\"}"), 0, 20, 0);
                    PacketPlayOutTitle subtitle = new PacketPlayOutTitle(EnumTitleAction.SUBTITLE, ChatSerializer.a("{\"text\":\"§3Voting Chest!\"}"), 0, 20, 0);
                    ((CraftPlayer) e.getPlayer()).getHandle().playerConnection.sendPacket(title);
                    ((CraftPlayer) e.getPlayer()).getHandle().playerConnection.sendPacket(subtitle);


    Hello all, I'm currently messing with title packets and that code above is what i've been using, anyone know how i would go about making the ChatSerializer string change to make it animated?
     
  2. Offline

    PDKnight

    I'm not really pro at this and don't know about an animated chatserializer, but I think you should try to use schedule task :)
     
  3. Offline

    baighxansgaming

  4. Offline

    PDKnight

    No problem! :)
     
Thread Status:
Not open for further replies.

Share This Page