mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 14:38:58 +00:00
- Allow hex colour codes to be used in the messagecolour options
channels.yml.
- Closes https://github.com/TownyAdvanced/Towny/issues/4087.
This commit is contained in:
1 parent
e10ba6f427
commit
6923c06d0a
2 files changed
+3
-1
No files matched your search
@@ -352,3 +352,5 @@ v0.83:
|
|||||||
v0.84:
|
v0.84:
|
||||||
- Fix nation and town names not parsing out the _'s for spaces.
|
- Fix nation and town names not parsing out the _'s for spaces.
|
||||||
- Closes https://github.com/TownyAdvanced/Towny/issues/4489.
|
- Closes https://github.com/TownyAdvanced/Towny/issues/4489.
|
||||||
|
- Allow hex colour codes to be used in the messagecolour options channels.yml.
|
||||||
|
- Closes https://github.com/TownyAdvanced/Towny/issues/4087.
|
||||||
@@ -128,7 +128,7 @@ public class StandardChannel extends Channel {
|
|||||||
* Only modify GLOBAL channelType chat (general and local chat channels) if isModifyChat() is true.
|
* Only modify GLOBAL channelType chat (general and local chat channels) if isModifyChat() is true.
|
||||||
*/
|
*/
|
||||||
if (!(exec.equals(channelTypes.GLOBAL) && !ChatSettings.isModify_chat())) {
|
if (!(exec.equals(channelTypes.GLOBAL) && !ChatSettings.isModify_chat())) {
|
||||||
event.setFormat(Format.replace("{channelTag}", getChannelTag()).replace("{msgcolour}", getMessageColour()));
|
event.setFormat(Format.replace("{channelTag}", getChannelTag()).replace("{msgcolour}", TownyChatFormatter.hexIfCompatible(getMessageColour())));
|
||||||
LocalTownyChatEvent chatEvent = new LocalTownyChatEvent(event, resident);
|
LocalTownyChatEvent chatEvent = new LocalTownyChatEvent(event, resident);
|
||||||
event.setFormat(TownyChatFormatter.getChatFormat(chatEvent));
|
event.setFormat(TownyChatFormatter.getChatFormat(chatEvent));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user