Open ChrisTaylor201 opened 4 years ago
After trying out different combinations of the configuration I was able to get it working, or more precisely, I had to set listenerpriority
to LOW
and overridechatformat
to true
, however there are two issues with this:
&l
) is applied to the entire message, not just the prefix.%XamountPL%
isn't translated.You can see what I mean in the screenshot below:
This is the chat formatting:
format: '%vault_prefix%%displayname% &7» &r%message%'
looks like your chat plugins are changing the macro %XamountPL% to lowercase, breaking it... does %amount% work? I suppose a future version could just accept lowercase macros as a workaround?
Please try the following development build https://ci.meme.tips/job/DisplayItem-Spigot/27/ (v2.9.1 development build 27 - may differ from 2.9.1 release)
this should add case-insensitive macros to workaround your issue. Personally I'm not able to reproduce the issue with bold formatting with newer versions but I didn't attempt with ChatManager yet.
EDIT: regardless of whether this solves your formatting issues, I am still investigating why the original exception occured in a new ticket (#13) - regarding this matter, could you post your full DisplayItem/config.yml
that creates the original error? thank you.
I think you're right because placeholder %amount%
works without any issues in version 2.8.0, however the workaround introduced in build 27 fixes the issue, thank you very much!
The exception can be reproduced with the default configuration, these are the steps:
[i]
placeholder – it works./direload
command.[i]
placeholder again – it will cause the mentioned exception.
Versions
Server core – PaperMC 1.15.2 build 380 DisplayItem – 2.8.0 ChatManager – 3.6.6
Description
If a player tries to post an item to chat, it will result in an exception:
I had to set
listenerpriority
toHIGH
, otherwise the default vanilla formatting would be used which, however, works without a problem. Other chat plugins, namely EssentialsX Chat, don't cause this issue.