mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-01 22:22:19 +00:00
- Allow channeltags to make use of hex colour formatting.
This commit is contained in:
1 parent
368fcc7486
commit
226ae6ee30
3 files changed
+5
-3
No files matched your search
@@ -7,7 +7,7 @@
|
||||
<groupId>com.palmergames.bukkit</groupId>
|
||||
<artifactId>TownyChat</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<version>0.89</version>
|
||||
<version>0.90</version>
|
||||
|
||||
<licenses>
|
||||
<license>
|
||||
|
||||
@@ -377,4 +377,6 @@ v0.88:
|
||||
- Fix hex color codes not being parsed in TownyChat spy messages.
|
||||
v0.89:
|
||||
- Update min. Towny to 0.97.0.0 and remove NotRegisteredException catches.
|
||||
- Add support for EssentialsDiscord, courtesy of JRoy with PR #33.
|
||||
- Add support for EssentialsDiscord, courtesy of JRoy with PR #33.
|
||||
v0.90:
|
||||
- Allow channeltags to make use of hex colour formatting.
|
||||
@@ -124,7 +124,7 @@ public class StandardChannel extends Channel {
|
||||
* Only modify GLOBAL channelType chat (general and local chat channels) if isModifyChat() is true.
|
||||
*/
|
||||
if (!(channelType.equals(channelTypes.GLOBAL) && !ChatSettings.isModify_chat())) {
|
||||
event.setFormat(format.replace("{channelTag}", getChannelTag()).replace("{msgcolour}", TownyChatFormatter.hexIfCompatible(getMessageColour())));
|
||||
event.setFormat(format.replace("{channelTag}", Colors.translateColorCodes(getChannelTag())).replace("{msgcolour}", Colors.translateColorCodes(getMessageColour())));
|
||||
LocalTownyChatEvent chatEvent = new LocalTownyChatEvent(event, resident);
|
||||
event.setFormat(TownyChatFormatter.getChatFormat(chatEvent));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user