mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-04 06:28:57 +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
+19
-2
No files matched your search
+3
-1
@@ -27,6 +27,8 @@
|
|||||||
# {group} - Players group name pulled from your permissions plugin
|
# {group} - Players group name pulled from your permissions plugin
|
||||||
# {permuserprefix} - Permission user prefix.
|
# {permuserprefix} - Permission user prefix.
|
||||||
# {permusersuffix} - Permission user suffix.
|
# {permusersuffix} - Permission user suffix.
|
||||||
|
# {permgroupprefix} - Permission group prefix.
|
||||||
|
# {permgroupsuffix} - Permission group suffix.
|
||||||
# {permprefix} - Permission group and user prefix.
|
# {permprefix} - Permission group and user prefix.
|
||||||
# {permsuffix} - Permission group and user suffix.
|
# {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,
|
# 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.
|
# that player will see a message saying they cannot be heard.
|
||||||
alone_message: '[modify_alone_message]'
|
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]'
|
alone_message_string: '[modify_alone_message_string]'
|
||||||
worlds:
|
worlds:
|
||||||
@@ -196,3 +196,5 @@ 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.
|
- 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:
|
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() {
|
replacer.registerFormatReplacement(Pattern.quote("{playername}"), new TownyChatReplacerCallable() {
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
name: TownyChat
|
name: TownyChat
|
||||||
main: com.palmergames.bukkit.TownyChat.Chat
|
main: com.palmergames.bukkit.TownyChat.Chat
|
||||||
version: 0.48
|
version: 0.49
|
||||||
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