Cannot modify chat format
LadyCailinBot opened this issue ยท 2 comments
CMDHELPER-3117 - Reported by phanaticd
Using this basic script
bind(player_chat, null, null, @e, modify_event('format', '<%1$s> [TEST] %2$s'))
does not display [TEST] in the players username
the only plugins which could affect this is EssentialsXChat and Vault
Comment by PseudoKnight
Modifying chat format works on my test server. EssentialsXChat, the name implying it's a chat plugin, is almost guaranteed to be modifying the format as well.
Comment by PseudoKnight
I looked at their code and they have 3 chat listeners, with the NORMAL and LOWEST listeners both modifying chat format. The NORMAL listener is doing it safely by concating the existing format with additional information. The LOWEST listener (which runs first) is overriding the format completely. If that EssentialsXChat listener runs after CH's (which is also on LOWEST), then it overrides it.