You cannot add a space in the Author's name
baailey opened this issue ยท 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
- /give written_book 1 author:test_test
- Look at the Author name
Expected behaviour
For the Author name to have a space
Actual behaviour
It doesn't add a space
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.
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.
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.