currency-symbol-suffix breaks trade signs
JareCoder opened this issue · 3 comments
Type of bug
Other unexpected behaviour
/ess dump all
output
Latest paper 1.19.3 with Essentials LTS (2.19.7):
https://essentialsx.net/dump.html?id=f948500db7db4d1292648e87ebea2da6
Latest paper 1.19.3 with Essentials dev (2.20.0):
https://essentialsx.net/dump.html?id=8e31b9e5143b416a86ff389f00bd3bdc
Error log (if applicable)
No response
Bug description
When setting currency-symbol-suffix to true in the "Economy" section in config, the trade sign doesn't store money. You can restock and buy from the sign, but the owner can't collect anything, since "There is nothing to collect".
Steps to reproduce
- Set currency-symbol-suffix to true in config.
- Make a [Trade] sign and stock it.
- Use another player to buy from created sign.
- Observe that buyer gets money taken from their account and they receive stocked items, but 2nd line stays at XX€:0.
- Try to collect money.
- Get error that you have nothing to collect.
If it matters, the currency-symbol is set to '€' and currency-symbol-format-locale to de-DE.
Expected behaviour
Money would be stored in the sign and you could collect it.
Actual behaviour
2nd line on sign stays at XX€:0 and doesn't store any money when currency-symbol-suffix is set to true.
As a workaround I changed the messages_en.properties file to flip the currency amount and suffix order and left currency-symbol-suffix as false. This makes the chat and commands display the currency symbol at the correct place, but doesn't fix signs for obvious reasons.
Please provide a full dump (/ess dump all
) like the issue template asked - it provides information such as server version, essentials version(s), and logs for any errors that may occur to help with triage and fixing.