Solved Previous and next buttons in chat

Discussion in 'Spigot Plugin Development' started by Wilsoon, Mar 17, 2020.

Thread Status:
Not open for further replies.
  1. How are previous and next buttons in chat created? (I know it's with TextComponent, and Click/Hover Text)
    but, how would I be able to scroll through the pages?
     
  2. Usually it's just clickevent with command, like /plugin help 1, /plugin help 2 etc.
     
  3. Some of them would also be able to use the existing contents of the chat and change it according to the page.
    Something like

    - hi page 1
    - hi I'm a man
    - hi i'm a woman

    When you press the next, it would be able to change the text of hi page 1 to hi page 2 instead of sending another message, how is this done?
     
  4. nope, we can't change existing content. Did you try to scroll the chat with your mouse wheel? Size of the page is just the same as chat window.
     
  5. Hmm okay, thanks.
     
Thread Status:
Not open for further replies.