Tutorial JSON in your code! A.K.A How to use the fanciful library

Discussion in 'Resources' started by Binner_Done, Jan 1, 2016.

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

    Binner_Done

    This tutorial uses a library
    You can find that library here



    Hello everyone, as it's the new year I thought I'd bring something new that most new developers don't know about.
    JSON Chat Messages!
    Or TellRaw in the normal minecraft world
    JSON chat messages allow clickable messages in the chat!
    To Use This Library
    Code:
    @EventHandler
            public void onPlayerJoin(PlayerJoinEvent e) {
                    new FancyMessage("Check out this forum! ")
                    .color(ChatColor.GOLD)
                    .then("Click here.")
                    .style(ChatColor.UNDERLINE)
                    .color(ChatColor.BLUE)
                    .link("bukkit.org/forums")
                    .tooltip("LOOK AT IT")
                    .send(e.getPlayer());
            }

    I hope this made sense, right?
    If not, check this youtube video out:
     
    iSexyChocobo and ChipDev like this.
  2. Offline

    ItsBRZY

    I think this should be "How to use the fanciful library" ;P
     
  3. Offline

    Binner_Done

  4. Offline

    87pen

    Looks cool, gonna try it out when I get home, Didn't even know this existed.
     
Thread Status:
Not open for further replies.

Share This Page