- Add ability to use Bold (&l), Italics (&o), Underline (&n), Magic
(&k), Strike (&m) and Reset (&r) in the channel_format
lines/tag_formats/directly in the chat line.
This commit is contained in:
LlmDl committed 2016-08-16 16:02:13 -05:00
1 parent b9c5e517d1
commit 8ae038f3b7
4 files changed
+10 -3

No files matched your search

+5
View File
@@ -41,6 +41,11 @@
# Purple = &5, Gold = &6, LightGray = &7, Gray = &8
# DarkPurple = &9, LightGreen = &a, LightBlue = &b
# Rose = &c, LightPurple = &d, Yellow = &e, White = &f
# Text altering
# -------------
# Bold = &l, Italics = &o, Underlined = &n,
# Magic = &k, Strike = &m, Reset = &r
# Spam_time set the minimum time between messages to be flagged as spam
spam_time: [spam_time]
+3 -1
View File
@@ -191,4 +191,6 @@ v0.44:
v0.45:
- Add chatconfig.yml option for modifying the 'no one can hear you' message.
v0.46:
- Add ability to use colour codes (&) in chat line. Requires townychat.chat.color which is not given by default.
- Add ability to use colour codes (&) in chat line. Requires townychat.chat.color which is not given by default.
v0.47:
- Add ability to use Bold (&l), Italics (&o), Underline (&n), Magic (&k), Strike (&m) and Reset (&r) in the channel_format lines/tag_formats/directly in the chat line.
@@ -175,7 +175,7 @@ public class TownyChatFormatter {
});
// Replace colours last ({msg} is replaced last as it can't be regex parsed).
replacer.registerFormatReplacement("&{1}[0-9A-Fa-f]{1}", new TownyChatReplacerCallable() {
replacer.registerFormatReplacement("&{1}[0-9A-Fa-fLlOoNnKkMmRr]{1}", new TownyChatReplacerCallable() {
@Override
public String call(String match, LocalTownyChatEvent event) throws Exception {
return "\u00A7" + match.charAt(1);
+1 -1
View File
@@ -1,6 +1,6 @@
name: TownyChat
main: com.palmergames.bukkit.TownyChat.Chat
version: 0.46
version: 0.47
author: ElgarL, Shade, phrstbrn
website: http://code.google.com/a/eclipselabs.org/p/towny/
description: >