EssentialsX

EssentialsX

2M Downloads

[BUG] Clear Inventory command has added space

BurningCoolDude opened this issue · 3 comments

commented

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=39161c699e244dd4b43b66598b47cf8f

Error log (if applicable)

No response

Bug description

When I click on run_command using the clear inventory command, it adds spaces.
image
image

Raw Paste:

[01:27:20 INFO]: BurnPlayz issued server command: /clear
[01:27:21 INFO]: BurnPlayz issued server command: /clear
[01:27:22 INFO]: BurnPlayz issued server command: /ci
[01:27:24 INFO]: BurnPlayz issued server command: /ci
[01:27:25 INFO]: BurnPlayz issued server command: /clearinvent
[01:27:26 INFO]: BurnPlayz issued server command: /clearinvent
[01:27:27 INFO]: BurnPlayz issued server command: /clearinventory
[01:27:29 INFO]: BurnPlayz issued server command: /clearinventory

Steps to reproduce

  1. Toggle clear inventory toggle on
  2. Create a message that has a click message to confirm
  3. Click it.

Expected behaviour

When I click, it should run /ci

Actual behaviour

When I click, it runs the command with extra spaces. I checked with the person who made the config, and they confirmed there's added spaces from ESSENTIALS.

Additional Information

No response

commented

What are you using to perform this "run command" click action? Can you provide additional information such as the configuration you are using for this message and reproduction steps?

commented

confirmClear=$<p:prefix>To <p:primary-color>CONFIRM

inventory clear <p:primary-color>click:run_command:"{0}"[➥✔ Confirm]

Here it is, in Essentials messages (sorry for the long wait!).

commented

I've got no clue what you're doing with these messages, but that is not official MiniMessage format.
This does not happen using the proper click components from MiniMessage, as intended by us.