AreaShop icon indicating copy to clipboard operation
AreaShop copied to clipboard

Prefix not bold after color change

Open mesl opened this issue 4 years ago • 3 comments

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)

  • Server platform (Bukkit, Spigot, etc.): Spigot
  • Server version: git-Spigot-379750e-e354566, 1.16.2-R0.1-Snapshot
  • AreaShop version: 2.6.0
  • WorldEdit version: 7.2.0
  • WorldGuard version: 7.0.4
  • Vault version: v1.7.3-b131

Your config files (for bugs)

AreaShop.tgA9.tar.zip

Hope to hear back from you Kind regards, Merlyn

mesl avatar Aug 18 '20 17:08 mesl

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+

Syrkulous avatar Aug 18 '20 17:08 Syrkulous

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

mesl avatar Aug 19 '20 00:08 mesl

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

Syrkulous avatar Aug 19 '20 03:08 Syrkulous