mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 06:28:57 +00:00
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.
This commit is contained in:
1 parent
b9c5e517d1
commit
8ae038f3b7
4 files changed
+10
-3
No files matched your search
@@ -41,6 +41,11 @@
|
|||||||
# Purple = &5, Gold = &6, LightGray = &7, Gray = &8
|
# Purple = &5, Gold = &6, LightGray = &7, Gray = &8
|
||||||
# DarkPurple = &9, LightGreen = &a, LightBlue = &b
|
# DarkPurple = &9, LightGreen = &a, LightBlue = &b
|
||||||
# Rose = &c, LightPurple = &d, Yellow = &e, White = &f
|
# 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 set the minimum time between messages to be flagged as spam
|
||||||
spam_time: [spam_time]
|
spam_time: [spam_time]
|
||||||
|
|||||||
+3
-1
@@ -191,4 +191,6 @@ v0.44:
|
|||||||
v0.45:
|
v0.45:
|
||||||
- Add chatconfig.yml option for modifying the 'no one can hear you' message.
|
- Add chatconfig.yml option for modifying the 'no one can hear you' message.
|
||||||
v0.46:
|
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).
|
// 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
|
@Override
|
||||||
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
||||||
return "\u00A7" + match.charAt(1);
|
return "\u00A7" + match.charAt(1);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name: TownyChat
|
name: TownyChat
|
||||||
main: com.palmergames.bukkit.TownyChat.Chat
|
main: com.palmergames.bukkit.TownyChat.Chat
|
||||||
version: 0.46
|
version: 0.47
|
||||||
author: ElgarL, Shade, phrstbrn
|
author: ElgarL, Shade, phrstbrn
|
||||||
website: http://code.google.com/a/eclipselabs.org/p/towny/
|
website: http://code.google.com/a/eclipselabs.org/p/towny/
|
||||||
description: >
|
description: >
|
||||||
|
|||||||
Reference in new issue
Block a user