How to make a groups chat 1 color

Discussion in 'Bukkit Help' started by mrchargerlover, Jul 24, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    mrchargerlover

    I want to know how to make a groups chat always 1 colour.
     
  2. Offline

    Mikgreg

    What chat plugin are you using?
     
  3. Offline

    benj0y

    Please give us more info. It should be only one colour, if not, go in to your chat plugin (this tutorial assumes your using EssentialsChat) folder, for EssentialsChat it's the Essentials folder. Then go into config.yml, and scroll down until you see the EssentialsChat section. There, where it says:

    format: blahablaha

    ... there, you can change the chat colour.
     
  4. Offline

    obscurehero

    mrchargerlover - Depends. If users will ONLY have one group at any one time then essentialschat works fine. Use the format in essentials to do this. If the users might have two groups use something that recognizes group priority. I like bPermissions with bChatmanager, but its just personal preference. In the latter case, you can use a group suffix to color that group's chat.
     
  5. Offline

    mrchargerlover

    ############################################################
    # +------------------------------------------------------+ #
    # | 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 (!)
    # 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: '<{DISPLAYNAME}> {MESSAGE}'
    #format: '&7[{GROUP}]&r {DISPLAYNAME}&7:&r {MESSAGE}'
    group-formats:
    # Default: '{WORLDNAME} {DISPLAYNAME}&7:&r {MESSAGE}'
    # Admins: '{WORLDNAME} &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.
    IS this it?
     
  6. Offline

    Taketheword

    I also recommend this combination.
     
  7. Offline

    Mikgreg

    # Default: '{WORLDNAME} {DISPLAYNAME}&7:&r {MESSAGE}'
    # Admins: '{WORLDNAME} &c[{GROUP}]&r {DISPLAYNAME}&7:&c {MESSAGE}'

    This is where you do it.
    Remove the # before the groupnames (E.g. Admins)
    so it would look like

    Admins: '{WORLDNAME} &c[{GROUP}]&r {DISPLAYNAME}&7:&c {MESSAGE}'
    rather than
    # Admins: '{WORLDNAME} &c[{GROUP}]&r {DISPLAYNAME}&7:&c {MESSAGE}'

    Then set it how you like. Lets say we have a group called Test and we want them to have red chat. This is what it would look like

    Test: '{DISPLAYNAME}&7:&c {MESSAGE}'
     
  8. Offline

    mrchargerlover

    Can I just make the "Admins" "Co-Owner" and the Default "Owner" or will that screw up everything?
     
  9. Offline

    Necrodoom

    obscurehero its the permission plugin that decides group priority, not the chat plugin. chat plugin gets the primary group a user prefix/suffix from the permission plugin, nothing else.
    mrchargerlover it wont screw up anything.
     
  10. Offline

    obscurehero

    That's my point. Of course the permissions plugin sets group priority. EssentialsChat doesn't get group priority. That's at least what Iaccidentally told me. It pulls the newest group, it seems. However, I heard they had plans to update EssentialsChat later, but ATM it doesn't do that.
     
  11. Offline

    Necrodoom

    er, again, essentialschat doesnt pull the newest group. it pulls the primary group. the primary group is up to your permission plugin, not external plugins.

    essentialschat has nothing to do with deciding what group to select, its completely up to your permission plugin.
     
  12. Offline

    obscurehero

    To clarify, I was using essentialschat. I had users with multiple groups. The users would always receive the group I gave them last in chat (using 'format:'), not the group with the highest priority. When I took this to #essentials Iaccidentally said that EssentialsChat doesn't pull the primary group and needs to be updated. Now maybe this was just the chat format bit, and if I would've used a default format and pulled the suffix it would have pulled that and operated fine...but that's not what I was told.

    If its been updated since then (2-3 wks ago), then good, otherwise you might not be correct. Whatever the case, the point is you want a chat plugin/manager that DOES pull the primary group. That was my point from the beginning. I'm not sure how you got confused. Even if EssentialsChat does this, good, that's the sort of plugin you need for the situation I gave.
     
  13. Offline

    Necrodoom

    @obscureherojust looked in hooks.. and it seems pex just dumps all groups in an array. no concept of priority what so ever.. so attempting to get the first group will get newest group instead of primary, sadly.
     
  14. Offline

    obscurehero

    another reason not to use pex... haha
     
  15. Offline

    mrchargerlover

    Soo.....? Can I just make the "Admins" "Co-Owner" and the Default "Owner" or will that screw up everything?

    Can one of you send me yours so I can see?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 3, 2016
  16. Offline

    mrchargerlover

    Im just using EssentialsChat
     
Thread Status:
Not open for further replies.

Share This Page