Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

You cannot add a space in the Author's name

Open baailey opened this issue 3 years ago • 4 comments

Type of bug

Other unexpected behaviour

/ess dump all output

https://essentialsx.net/dump.html?id=220e499e504c4eee9bcc4ff5cda3765f

Error log (if applicable)

No response

Bug description

Trying to /give yourself a written book with an Author name that includes a space does not work.

Steps to reproduce

  1. /give written_book 1 author:test_test
  2. Look at the Author name

Expected behaviour

For the Author name to have a space

Actual behaviour

It doesn't add a space

baailey avatar Jul 27 '22 10:07 baailey

~~This is probably because in Minecraft, Player names are not allowed to have a space in them, because the part of the name behind the space then counts as an additional argument and not as part of the name...so I don't think this is a bug, I think it's intended to be like this.~~

Chris6ix avatar Jul 29 '22 17:07 Chris6ix

I'm not aware of any technical reason why books wouldn't be able to have spaces in author names. I haven't looked into the parsing yet but I see no reason why we can't allow for this.

mdcfe avatar Jul 29 '22 18:07 mdcfe

I should probably mention that you can add a space in the author name (author:"test test") using the vanilla /give command, just not through the EssX command.

baailey avatar Jul 29 '22 23:07 baailey

Noted, marked this as a problem and not a bug since technically this is "intended behavior" based on how Essentials currently parses the author name in books.

However this is a bit of a bigger problem than just for the author field, as currently in other areas (such as lore) underscores are replaced by spaces, but there isn't really a way to control how it works. We're internally discussing ways that this can be changed in a future update.

pop4959 avatar Jul 30 '22 00:07 pop4959