InteractiveBooks icon indicating copy to clipboard operation
InteractiveBooks copied to clipboard

Color Code Bug for 1.19 versions

Open m4kii420 opened this issue 2 years ago • 9 comments

After updating the server to 1.19 all text in books is bold now

m4kii420 avatar Dec 16 '22 21:12 m4kii420

Can I have the book's config?

leonardo-dgs avatar Dec 17 '22 03:12 leonardo-dgs

title: '§aVote'

# Book's author
author: vote

# Book's generation
# Valid values: ORIGINAL, COPY_OF_ORIGINAL, COPY_OF_COPY, TATTERED
generation: ORIGINAL

# Item's lore
lore:

# Command to open this book
# You can remove this by setting it to ''
# Separate multiple commands with a space
open_command: 'vote'

# For the placeholders to work correctly
# you have to download the Vault plugin:
# https://www.spigotmc.org/resources/vault.34315/
# and the Player and Vault expansions for PlaceholderAPI:
# /papi ecloud download Player
# /papi ecloud download Vault
# /papi reload
pages:
  '1':
  - '§7'
  - '§0§l       HideOut'
  - '§0      ᴠᴏᴛɪɴɢ ꜱɪᴛᴇꜱ'
  - '§7'
  - '<click:open_url:https://minecraftservers.org/vote/641962><hover:show_text:"§aClick here to open this link">§a§l     1) §8Vote Link</click>'
  - '§7'
  - '<click:open_url:https://topg.org/minecraft-servers/server-648148><hover:show_text:"§aClick here to open this link">§b§l     2) §8Vote Link</click>'
  - '§7'
  - '<click:open_url:https://minecraft.buzz/server/6118><hover:show_text:"§aClick here to open this link">§c§l     3) §8Vote Link</click>'
  - '§7'
  - '<click:open_url:https://minecraft-mp.com/server/310521/vote/><hover:show_text:"§aClick here to open this link">§d§l     4) §8Vote Link</click>'
  - '§7'
  - '<click:open_url:https://topminecraftservers.org/vote/30029><hover:show_text:"§aClick here to open this link">§6§l     5) §8Vote Link</click>'

m4kii420 avatar Dec 18 '22 01:12 m4kii420

We used it like that on 1.18 and it worked

m4kii420 avatar Dec 18 '22 01:12 m4kii420

@Leonardo-DGS can you fix that?

m4kii420 avatar Dec 20 '22 16:12 m4kii420

You have to place <r> at the end of each line, because the text attributes are kept over the lines

leonardo-dgs avatar Dec 22 '22 09:12 leonardo-dgs

Did not work for me on 1.19.2. I have the same issue as the user above. Going to revert back to 1.6.1 as I believe it worked with 1.19.2. Can update after restart. Did not have this issue till I updated the Plugin. Also out of curiosity, what is with the <r> instead of using &r or §r?

inkdASCENSION avatar Jan 04 '23 03:01 inkdASCENSION

Did not work for me on 1.19.2. I have the same issue as the user above. Going to revert back to 1.6.1 as I believe it worked with 1.19.2. Can update after restart. Did not have this issue till I updated the Plugin. Also out of curiosity, what is with the <r> instead of using &r or §r?

The text decorations are kept even on a new line, so you have to reset it manually with <r> or <reset>. It's the MiniMessage syntax.

leonardo-dgs avatar Jan 04 '23 15:01 leonardo-dgs

<r> did not work for me but <reset> does work. Simple fix and I am happy for that since I just re-typed my /rules book doing open and closed tags of <dark_aqua><bold>This was a pain</bold></dark_aqua>. Thank you for the work, much appreciated!

inkdASCENSION avatar Jan 04 '23 18:01 inkdASCENSION

Maybe the plugin should automatically append <reset> at the end of each line, to keep the old behavior?

leonardo-dgs avatar Jan 04 '23 18:01 leonardo-dgs