Hey all, I run a bukkit server with Factions, Essentials (all 4), and YAPP as a permissions plugin.
Currently it looks like this when someone speaks, which I need to fix.
[**FactionName ][Prefix]<playername>
i want to change it to...
[**FactionName][Prefix]<playername>
For some reason there is a space in between the end of the factionname and the bracket. Has anyone else had this issue and fixed it or knows how to fix it. Help very much wanted.
# If EssentialsChat is installed, this will define how far a player's voice travels, in blocks. Set to 0 to make all chat global.
# Note that users with the "essentials.chat.spy" permission will hear everything, regardless of this setting.
# Users with essentials.chat.shout can override this by prefixing text with an exclamation mark (!)
# Users with essentials.chat.question can override this by prefixing text with a question mark (?)
# You can add command costs for shout/question by adding chat-shout and chat-question to the command costs section."
radius: 0
# Chat formatting can be done in two ways, you can either define a standard format for all chat.
# Or you can give a group specific chat format, to give some extra variation.
# If set to the default chat format which "should" be compatible with ichat.
# For more information of chat formatting, check out the wiki: http://wiki.ess3.net/wiki/Chat_Formatting
I'm aware of this issue too as I was testing the new version of Factions before installing it (which I then decided not to). I believe it may be a bug as the numerous steps I took to resolve the issue didn't work.
The problem can be fixed in your "config.yml" of the Factions plugin.
The tag placement settings for chat messages in conf.json work as follows:
First, Factions will check for “chatTagReplaceString” (will default to “[FACTION]“). If that string exists in the chat message, it will be replaced. You could therefore stick that string in your chat plugin’s prefix or suffix or whatever. Note that if local or channel chat is enabled in another plugin, Factions might never get a chance to replace it (depending on how the other chat plugin implements it; see below). If you use EssentialsChat, this is the recommended method. Simply include “[FACTION]” in the EssentialsChat format string in Essentials’ config.yml.
If that string doesn’t exist in the message or the setting is empty (thus disabled), Factions will then check the “chatTagInsertBeforeString” setting (defaults to nothing “”, thus disabled). You could set that to a certain character such as “<”, “>”, “[", "]“, or whatever. The tag will then be inserted before the first instance if that string if it exists in the message.
If that string doesn’t exist in the message or the setting is empty (thus disabled), Factions will then check the “chatTagInsertAfterString” setting (defaults to nothing “”, thus disabled). This works much the same as the above, except it will insert after the first instance of that string.
Only if all of the above are disabled or don’t find matches will it finally resort to the“chatTagInsertIndex” setting, which indicates how many characters into the chat message to insert it. Note that color tags consist of 2 characters, and are considered in this placement. If you see strange characters and stray letters or numbers, you need to adjust this value or alternately use one of the above placement settings instead.
The settings “chatTagPadBefore” and “chatTagPadAfter” will add an extra space (“ ”) before or after the faction tag when inserting it.
Currently it looks like this when someone speaks, which I need to fix.
[**FactionName ][Prefix]<playername>
i want to change it to...
[**FactionName][Prefix]<playername>
For some reason there is a space in between the end of the factionname and the bracket. Has anyone else had this issue and fixed it or knows how to fix it. Help very much wanted.
Please paste your EssentialsChat format settings in Essentials' config.yml in [CODE] tags.
Stu
# If EssentialsChat is installed, this will define how far a player's voice travels, in blocks. Set to 0 to make all chat global.
# Note that users with the "essentials.chat.spy" permission will hear everything, regardless of this setting.
# Users with essentials.chat.shout can override this by prefixing text with an exclamation mark (!)
# Users with essentials.chat.question can override this by prefixing text with a question mark (?)
# You can add command costs for shout/question by adding chat-shout and chat-question to the command costs section."
radius: 0
# Chat formatting can be done in two ways, you can either define a standard format for all chat.
# Or you can give a group specific chat format, to give some extra variation.
# If set to the default chat format which "should" be compatible with ichat.
# For more information of chat formatting, check out the wiki: http://wiki.ess3.net/wiki/Chat_Formatting
format: '[FACTION]{DISPLAYNAME}&7:&r {MESSAGE}'
#format: '&7[{GROUP}]&r {DISPLAYNAME}&7:&r {MESSAGE}'
group-formats:
# Default: '[FACTION]&f {DISPLAYNAME}&7:&r {MESSAGE}'
# Admins: '[FACTION] &c[{GROUP}]&r {DISPLAYNAME}&7:&c {MESSAGE}'
# If you are using group formats make sure to remove the '#' to allow the setting to be read.
^^ there it is. What do i change?format: '[FACTION]{DISPLAYNAME}&7:&r {MESSAGE}'
#format: '&7[{GROUP}]&r {DISPLAYNAME}&7:&r {MESSAGE}'
group-formats:
# Default: '[FACTION]&f {DISPLAYNAME}&7:&r {MESSAGE}'
# Admins: '[FACTION] &c[{GROUP}]&r {DISPLAYNAME}&7:&c {MESSAGE}'format: '[FACTION]{DISPLAYNAME}&7:&r {MESSAGE}'
^ that's my format
Stu
I'm having this same issue.
Here's mine:
format: '[FACTION]{DISPLAYNAME}: {MESSAGE}'
#format: '&7[{GROUP}]&r {DISPLAYNAME}&7:&r {MESSAGE}'
This just has the string [FACTION] instead of normal chat. This should work though according to both Factions' and Essentials' wikis.
Are you using Factions 1.7 or 1.8? If so, you'll need to take a look here.
Stu
EDIT:
Actually, the relcolor part isn't working. It's just white for everything. Here's my config.
format: '&f[[factions_relcolor][factions_tag]&f] &f{DISPLAYNAME}: {MESSAGE}'
I'm aware of this issue too as I was testing the new version of Factions before installing it (which I then decided not to). I believe it may be a bug as the numerous steps I took to resolve the issue didn't work.
Stu
Source: http://massivecraft....factions/config
Where can I find the "ChatTagPadAfter"???