NLthijs48 / AreaShop

A Bukkit/Spigot (Minecraft server) plugin that facilitates renting and buying WorldGuard regions
GNU General Public License v3.0
55 stars 89 forks source link

Prefix not bold after color change #571

Open mesl opened 4 years ago

mesl commented 4 years ago

Current behavior

using: - '[aqua][bold]Test[reset][white][bold]Prefix [reset][dark_gray][bold]> [reset]' The result is only visible in the reload message itself: image Not in any other trigger / greeting message I tried [bold][color], [color][bold] [reset] etc none of them gave the result I expected

New behavior

The result I got with the reload message

Steps to reproduce (for bugs)

  1. Create custom lang file
  2. Create custom prefix with multiple colors and segments that have to be bold
  3. Reload plugin and trigger greeting message

Your environment (for bugs)

Your config files (for bugs)

AreaShop.tgA9.tar.zip

Hope to hear back from you Kind regards, Merlyn

Syrkulous commented 4 years ago

I believe you'll need to do the normal minecraft chat formatting to do messages

So if you wanted something bold you would write "&l bold letters!" And the greetings message should come out bold or colored depeNing on how you add & to it. "&4&l red bold letters!"

Also, please use https://github.com/Curtis73/AreaShop/releases/tag/v2.6.2 For 1.16+. 2.6.0 and lower will not work correctly for 1.14+

mesl commented 4 years ago

Thank you for your reply! I tried the above and upgraded my plugin but I still have an issue where the greeting messages don't show the second &l (The aqua &l is visible though the white and gray one isn't)

Kind regards Merlyn

Syrkulous commented 4 years ago

The first one is visible for both aqua and white, use what that first one uses and copy it over to the other messages.

If you're attempting to change the greetings message that shows when walking into areashops, you will need to change that via default.yml, not the language.yml