
TownyChat commands not working and minimessage not parsing
o7-hmoe opened this issue · 6 comments
What steps will reproduce the problem?
ISSUE 1: colors not parsing in /channel
- install townyChat 0.107 and Towny 0.99.5.0
- execute /channel
- notice that the colour codes are displayed as instead of the colour.
ISSUE 2: colors not appearing in {msgcolour}
- install townyChat 0.107 and Towny 0.99.5.0
- Open Channels.yml and change the messagecolour of town chat to be &e
- Open ChatConfig.yml and change channel_format for town entry to be: '{channelTag} {towntag}{townyprefix}{modplayername} : {msgcolour}{msg}'
- restart server or try using /townychat reload, if it works
- notice that the {msgcolour} which should be applying yellow, does not apply yellow to the chat message
What is the expected output?
Output listed above in each issue
Towny version
Towny 0.99.5.0
TownyChat 0.107
Server version
Paper version git-Paper-72 (MC: 1.20.1) (Implementing API version 1.20.1-R0.1-SNAPSHOT) (Git: a3c760e)
Please use Pastebin.com to link the following files
- Your full server startup from the logs\latest.log: https://pastebin.com/E2Ba8Rhf
- Your Towny config.yml: https://pastebin.com/mAEbF9RB
- Your townyperms.yml: https://pastebin.com/vb0mLcZ1
- Your log's error: none
(optional) If this is to do with permissions,
5. Your permissions file:
(optional) If this is to do with chat,
6. Your chatconfig.yml: https://pastebin.com/1wF35Zmh
7. Your channels.yml: https://pastebin.com/kv48sGyA
I've got a PR for fixing the helpmenus that's already been merged, the code for message colouring looks good though.
I also wonder if MessageFilter, ChatControl might be to blame.
Because we were able to see get parsed we know that the channels' msgcolour isn't null, when a msgcolour is null we just replace {msgcolour} with "". That leads me to believe that the colour code was added, but was being removed.
Does either of the above plugins require a permission node to colour player chat text?