mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 06:28:58 +00:00
v0.48:
- Add new chatconfig tags {permgroupprefix}, {permgroupsuffix}, used
to show only group prefix and suffixes. Requires Towny 0.91.4.13 or
newer to function properly!
This commit is contained in:
1 parent
87b21125be
commit
1c0d7e6ad9
4 files changed
+21
-4
No files matched your search
+4
-2
@@ -25,8 +25,10 @@
|
||||
|
||||
# {townycolor} - Towny name colour for king/mayor/resident
|
||||
# {group} - Players group name pulled from your permissions plugin
|
||||
# {permuserprefix} - Permission user prefix.
|
||||
# {permuserprefix} - Permission user prefix.
|
||||
# {permusersuffix} - Permission user suffix.
|
||||
# {permgroupprefix} - Permission group prefix.
|
||||
# {permgroupsuffix} - Permission group suffix.
|
||||
# {permprefix} - Permission group and user prefix.
|
||||
# {permsuffix} - Permission group and user suffix.
|
||||
|
||||
@@ -95,6 +97,6 @@
|
||||
# either by being along in the channel or out-of-range of another player in his chat channel,
|
||||
# that player will see a message saying they cannot be heard.
|
||||
alone_message: '[modify_alone_message]'
|
||||
# This allows you to set your alone messaeg.
|
||||
# This allows you to set your alone message.
|
||||
alone_message_string: '[modify_alone_message_string]'
|
||||
worlds:
|
||||
+3
-1
@@ -195,4 +195,6 @@ v0.46:
|
||||
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.
|
||||
v0.48:
|
||||
- Add new chatconfig tags {permuserprefix}, {permusersuffix}, used to show only user prefix and suffixes. Requires Towny 0.91.4.8 or newer to function properly!
|
||||
- Add new chatconfig tags {permuserprefix}, {permusersuffix}, used to show only user prefix and suffixes. Requires Towny 0.91.4.8 or newer to function properly!
|
||||
v0.48:
|
||||
- Add new chatconfig tags {permgroupprefix}, {permgroupsuffix}, used to show only group prefix and suffixes. Requires Towny 0.91.4.13 or newer to function properly!
|
||||
@@ -166,6 +166,19 @@ public class TownyChatFormatter {
|
||||
}
|
||||
});
|
||||
|
||||
replacer.registerFormatReplacement(Pattern.quote("{permgroupprefix}"), new TownyChatReplacerCallable() {
|
||||
@Override
|
||||
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
||||
return TownyUniverse.getPermissionSource().getPrefixSuffix(event.getResident(), "groupprefix");
|
||||
}
|
||||
});
|
||||
replacer.registerFormatReplacement(Pattern.quote("{permgroupsuffix}"), new TownyChatReplacerCallable() {
|
||||
@Override
|
||||
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
||||
return TownyUniverse.getPermissionSource().getPrefixSuffix(event.getResident(), "groupsuffix");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
replacer.registerFormatReplacement(Pattern.quote("{playername}"), new TownyChatReplacerCallable() {
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
name: TownyChat
|
||||
main: com.palmergames.bukkit.TownyChat.Chat
|
||||
version: 0.48
|
||||
version: 0.49
|
||||
author: ElgarL, Shade, phrstbrn
|
||||
website: http://code.google.com/a/eclipselabs.org/p/towny/
|
||||
description: >
|
||||
|
||||
Reference in new issue
Block a user