mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-03 22:21:20 +00:00
- Allow channeltags to make use of hex colour formatting.
This commit is contained in:
1 parent
368fcc7486
commit
226ae6ee30
3 files changed
+4
-2
No files matched your search
@@ -7,7 +7,7 @@
|
|||||||
<groupId>com.palmergames.bukkit</groupId>
|
<groupId>com.palmergames.bukkit</groupId>
|
||||||
<artifactId>TownyChat</artifactId>
|
<artifactId>TownyChat</artifactId>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<version>0.89</version>
|
<version>0.90</version>
|
||||||
|
|
||||||
<licenses>
|
<licenses>
|
||||||
<license>
|
<license>
|
||||||
|
|||||||
@@ -378,3 +378,5 @@ v0.88:
|
|||||||
v0.89:
|
v0.89:
|
||||||
- Update min. Towny to 0.97.0.0 and remove NotRegisteredException catches.
|
- 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.
|
* Only modify GLOBAL channelType chat (general and local chat channels) if isModifyChat() is true.
|
||||||
*/
|
*/
|
||||||
if (!(channelType.equals(channelTypes.GLOBAL) && !ChatSettings.isModify_chat())) {
|
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);
|
LocalTownyChatEvent chatEvent = new LocalTownyChatEvent(event, resident);
|
||||||
event.setFormat(TownyChatFormatter.getChatFormat(chatEvent));
|
event.setFormat(TownyChatFormatter.getChatFormat(chatEvent));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user