Factions + Essentials Chat

Discussion in 'Bukkit Help' started by mig4ng, Nov 3, 2012.

Thread Status:
Not open for further replies.
  1. Hi guys,
    I'm having a little problem, i want to configure essentials chat to show the faction you're in tag on the chat but i'm having some troubles, on the configuration page of factions it says this:
    Code:
    If you’re looking to use another chat plugin and want to be sure it has full compatibility with Factions, there are two which have additional integration work done to make sure they work perfectly together. The first is EssentialsChat, a part of the Essentials plugin, for which it’s recommended you add “[FACTION]” to the chat configuration in Essentials config.yml. The second is ChannelChat, which even has an additional “faction” channel added by the author.
     
    Now to the config options:
     
    “chatTagEnabled”: true
    Should we insert faction chat tags at all? You should not decide to turn this of as it is an awesome feature  If you experience conflicts with some other plugin you should test to set this next config option to false instead:
    “chatTagRelationColored”: true
    Per default we color the chat tag to visualize relation. Foo saw her faction tag in green color because this option was set to true. HOWEVER you may want to try to turn this feature of in the rare case that you experience conflicts with other plugins.
    “chatTagInsertIndex”: 1
    Fallback insertion method. How many characters in from the beginning should we inject the faction tag?
    “chatTagReplaceString”: “[FACTION]“
    Replacement style insertion method. If that string exists in the chat message, the faction tag will replace it.
    “chatTagInsertBeforeString”: “”
    If set and the specified string exists in the chat message, the faction tag will be inserted before it.
    “chatTagInsertAfterString”: “”
    If set and the specified string exists in the chat message, the faction tag will be inserted after it. As an example, “<” might be a good choice.
    “chatTagFormat”: “%s§f “
    The %s will be replaced with the tag. The §f means white and then there is a space.
    “factionChatFormat”: “§a%s§f %s”
    This is the format for the faction chat command. This will not inject into the format and stuff. It is only used for the faction chat command which sends chat messages that only your fellow faction members can see.
    “prefixAdmin”: “**”
    “prefixMod”: “*”
    The prefixes for faction admins and moderators.
    and i've done this:
    Code:
    ############################################################
    # +------------------------------------------------------+ #
    # |                  EssentialsChat                    | #
    # +------------------------------------------------------+ #
    ############################################################
     
    chat:
     
      # 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 (!)
      # Or 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://ess.khhq.net/wiki/Chat_Formatting 
     
      format: '{FACTION}&r[&8Membro&r]{DISPLAYNAME}&r: &7{MESSAGE}'
      #format: '[{GROUP}&r]&f{DISPLAYNAME}: {MESSAGE}'
     
      group-formats:
      #  Default: '{WORLDNAME} {DISPLAYNAME}&7:&f {MESSAGE}'
        Obsidian: '{FACTION}&r[&9Obsidian&r]{DISPLAYNAME}&r: &7{MESSAGE}'
        Iron: '{FACTION}&r[&7Iron&r]{DISPLAYNAME}&r: &7{MESSAGE}'
        Gold: '{FACTION}&r[&eGold&r]{DISPLAYNAME}&r: &7{MESSAGE}'
        Diamond: '{FACTION}&r[&bDiamond&r]{DISPLAYNAME}&r: &7{MESSAGE}'
        Emerald: '{FACTION}&r[&2Emerald&r]{DISPLAYNAME}&r: &7{MESSAGE}'
        Lava: '{FACTION}&r[&6La&cva&r]{DISPLAYNAME}&r: &7{MESSAGE}'
        Owner: '{FACTION}&r[&4Dono&r]{DISPLAYNAME}&r: &c{MESSAGE}'
    but when i go to the config of factions i can't find the chatTagEnabled, or chatTagReplaceString.

    Can somebody help me please? i think that the faction config file is outdated :S

    nvm, i made it:

    Owner: '[{faction_relcolor}§l{faction_roleprefix}§r{faction_relcolor}{faction_tag_pr}]&r[&4Dono&r]{DISPLAYNAME}&r: &c{MESSAGE}'


    But the colours don't appear to work ...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  2. Offline

    brord

    you need to regenererate the fations config. It wont add it on his own.
    (delte it, and restart the server)
     
  3. Offline

    Kaleem

    Im not sure if you still remember how to do this but how do i add brackets to the factions name. On my server i have a faction for a test called Hello and it shows up like this <**Hello [Group]Cool1003>. I want it to be
    <[**Hello] [Group]Cool1003>. Any idea on how i could do this? Please help. Thank you :).
     
  4. send me your essentials config
     
  5. Offline

    Kaleem

    [quote uid=50375 name="mig4ng" post=1605147]send me your essentials config[/quote]
    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 9, 2016
  6. Offline

    Seriphia

    Would you mind editing mine as well. I'm very confused o-o
     
  7. Offline

    Arkane

    Hey guys !

    Read this thread !
    Everything is explained very clearly.
    Also shows you examples on how to use the code and personalize it !

    Best thread on the subject !

    Factions & Essentials Chat
     
  8. Remove the §r between '..releprefix}' and '{faction_rel...'
     
  9. Offline

    PsycoBoyFilms

Thread Status:
Not open for further replies.

Share This Page