EssentialsX

EssentialsX

2M Downloads

`/recipe` command message formatting is broken in the console

imDaniX opened this issue · 0 comments

commented

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=b582788be0284f94a62aaa9eca7eb4cc

Error log (if applicable)

No response

Bug description

[15:39:29 INFO]: [Essentials] CONSOLE issued server command: /recipe diamond_pickaxe
[15:39:29 INFO]: Recipe for diamond pickaxe (1 of 1)
[15:39:29 INFO]: Error: Legacy formatting codes have been detected in a MiniMessage string - this is unsupported behaviour. Please refer to the Adventure documentation (https://docs.advntr.dev) for more information.
        \<secondary>1X \<primary>| X \<primary>| X
                                 ^^

Steps to reproduce

  1. Run /recipe with any shaped recipe items in the console, e.g. /recipe diamond_pickaxe
  2. See the error

Expected behaviour

Should show the recipe

Actual behaviour

Error

Additional Information

The problem is that /recipe wasn't really updated to support MiniMessage - it still uses legacy color codes instead of MM tags.

Even if you'll get rid of § in the recipeGrid string, recipeWhere string breaks colors later because of arguments escaping. /recipe furnace:

[15:25:59 INFO]: Where: \<secondary>3X \<primary>is \<secondary>nothing\<secondary>2X \<primary>is \<secondary>cobblestone