ChatLib 1.0-beta

Allows easy creation of hover and click messages and books!

  1. xJulian
    Easily create custom messages and books!

    Usage examples:

    Code (Text):
    Player p = e.getPlayer();
    TextComp comp = new TextComp("Text!");
    comp.setHoverEvent(new Hover("This is the hover!"));
    comp.setClickEvent(new Click(ClickAction.OPEN_URL, "http://www.spigotmc.org"));
    comp.setColor(TextColor.BLUE);
    comp.send(p);
    // comp.sendAll();
    Code (Text):
    List<BookTextComp> list = new ArrayList<>();
    BookTextComp c1 = new BookTextComp("This is the message!", new BookHover("Hover in a book!!!"));
    BookComp comp = new BookComp("Book Name!", "Book Author!", list);
    comp.sendBook(p);
    Oh, and don't put any extras inside other extras.
    Mainyf likes this.