MORE fun with this
I decided to use m_Lore to store the commands; after all it is good for the player to see them. However, I found out that the lore gets maimed when it contains multiple consecutive line-ends. Setting the lore via plugin to "a``b" sets the lore correctly, but moving the item around the inventory while in Creative resets the lore to "a`b`". Also, the client doesn't display the extra empty line.
Reported as an issue: https://github.com/cuberite/cuberite/issues/3467
I decided to use m_Lore to store the commands; after all it is good for the player to see them. However, I found out that the lore gets maimed when it contains multiple consecutive line-ends. Setting the lore via plugin to "a``b" sets the lore correctly, but moving the item around the inventory while in Creative resets the lore to "a`b`". Also, the client doesn't display the extra empty line.
Reported as an issue: https://github.com/cuberite/cuberite/issues/3467