Adjusts config options for chat formatting, and expands parsing of color codes in chat. Adds a new permission to allow players to use color codes in their chat messages.
Change Details
Added more built-in format tags for colors:
%C1% - primary relation color
%C2% - secondary relation color
%CW% - kingdom webcolor
Added a config option to specify the divider text between the chat format and player message.
Added a permission, konquest.chatcolor, to allow players to use color codes (&4, #ff0080, etc.) in their messages only while in global chat mode.
Removed config options core.chat.kingdom_team_color and core.chat.name_team_color which were too restrictive. Instead, the new color tags can be used to insert relational colors anywhere in the format string.
Updated chat command /k chat logic to return an error message when the config option core.chat.enable_format is false.
Updated kingdom chat message formats for friendly players and admin bypass players.
Checklist
[x] I have merged the latest develop commit into this branch and resolved any conflicts.
[x] I have tested this branch and it is working as intended.
[x] This Pull Request is ready for review and merging.
Konquest Pull Request
Closes #168
Summary
Adjusts config options for chat formatting, and expands parsing of color codes in chat. Adds a new permission to allow players to use color codes in their chat messages.
Change Details
konquest.chatcolor
, to allow players to use color codes (&4, #ff0080, etc.) in their messages only while in global chat mode.core.chat.kingdom_team_color
andcore.chat.name_team_color
which were too restrictive. Instead, the new color tags can be used to insert relational colors anywhere in the format string./k chat
logic to return an error message when the config optioncore.chat.enable_format
is false.Checklist
develop
commit into this branch and resolved any conflicts.