Chat tooltip with multiple lines and colors

Discussion in 'Plugin Development' started by Catchet, May 12, 2014.

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

    Catchet

    The other day I went to a server (1.7.2) but no one else was online so (by accident) I hovered over the chat with the cursor and I saw this:
    [​IMG]
    So I Googled how to do that and I found Fanciful, but it doesn't seem to allow multiple lines or color codes. If I try to make a tooltip with two or more lines it just says: "Invalid Item"
    [​IMG]
    So, is there any other way to do that cool tooltip in the first image?
    Thank you.
    - Catchet

    Oh, by the way, the server that I tested my tooltip on was 1.7.9.
     
  2. Offline

    StefanXX

    do /? on the server get the plugin name go to the bukkit plugins list and ask for the source
     
  3. Offline

    stuntguy3000

    This could/probably is achieved by the \n (newline) parameter.
     
    es359 likes this.
  4. Offline

    Catchet

    StefanXX
    They have blocked that command

    stuntguy3000
    That's what I did, and mkremins (the creator of Fanciful) said that it doesn't work.

    SethoPS said: "Is there ever going to be support for multiple lines (in the tooltips that shows when hovering over text)? I love the simplicity, but I want to make some pixel art and I need multiple lines for that."​

    mkremins: "The API to do this exists already – you can pass more than one string into the FancyMessage.tooltip() method, with each string being treated as a separate line in a multiline tooltip. Alternatively, you can also pass in aCollection<String> (again, with each string being treated as a separate line) or a single string containing newline characters ("\n") where you want the line breaks to be.
    Unfortunately, there's a bug in the Minecraft JSON parser that seems to be breaking multiline tooltip functionality. I'm actively looking for a fix, but right now you can't make use of multiline tooltips in your plugins even though the API is there. "

    Quoted from: https://forums.bukkit.org/threads/lib-fanciful-pleasant-chat-message-formatting.195148/page-4

    Bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 8, 2016
  5. Offline

    GeekyCompz

  6. Offline

    JuicyDev

    Catchet
    Soft of cheaty bypass is to type in "/bukkit:help" and then hit the TAB key and it will spam your chat with a list of plugins and commands. If you scroll up you should be able to see the plugins, though if there are a lot then they might get pushed out of the chat log.
     
  7. Offline

    Catchet

  8. StefanXX JuicyDev Guys, just stop those kinds of methods. Either way it's entirely possible that it's a private plugin.

    Catchet Two options would be to wait until the library finds a workaround, or look into how the library works and find a workaround yourself (and then suggesting the workaround to the library's developer would be nice)
     
Thread Status:
Not open for further replies.

Share This Page