Universal Mute global chat

Discussion in 'Plugin Requests' started by Wanne, Aug 1, 2016.

  1. I want a way to mute the global chat and keep local chat as standard. My server is RP dedicated and this (Global hat) kills the game.
     
  2. just do the following:

    go to permissions.cfg and switch to the usergroup where all your players are in (default, or whatever this goes for you)
    there is a field called chatFormat

    it looks like this

    Code:
    nameFormat = '[21C447][Untertan][000000] %name%'
            chatFormat = '%name% : %message%'
            guildFormat = '[an meine Gilde]%name% : %message%'
            localChatFormat = '[sagt]%name% : %message%'
            whisperSendFormat = '[flüstert]%name% : %message%'
            whisperReceiveFormat = '[flüstert dir zu]%name% : %message%'
    just make the passage chat format look like this:

    Code:
     chatFormat = ' '
    and then global chat is disabled.

    you still have to inform your players, that they have to use local chat.

    maybe in the rules or somewhere

    otherwise they rite a message, nothing gets displayer and,.. welll frustration
    [DOUBLEPOST=1470014325][/DOUBLEPOST]before you aks, without a plugin there is no way to change local chat to default
     
  3. Many thanks! It ill helps a lot for now.
    Maybe someday I be albe to make a pluggin for it.
     
  4. I will look into it tomorrow, should not be too hard, i will just make a PlayerChatChannelSetEvent on every Chat event except admin.
     
  5. Great and good idea!
     
  6. Don't works. :/
     
  7. you know... i am using this on my server... so it DOES WORK...

    i bet you did something wrong....

    upload your permissions.cfg please
     
  8. Maybe it conflicts with /ooc?
     
  9. POST YOUR Permissions.CFG here PLEASE.

    otherwise i cannot help you
     
  10. I did the (chatFormat = ' '), but it always returns when game starts. I'll try to uninstall /ooc pluggin.

    Please see below:

    # guest {
    # nameFormat = \'%name%\'
    # guildFormat = \'[00CC00][%guild%] %chatFormat%[-]\'
    # permissions {
    # - \'rok.chat.me\'
    # - \'rok.chat.guild\'
    # - \'rok.help.list\'
    # - \'codehatch.reporting.players\'
    # }
    # }
    groups {
    default {
    permissions {
    - 'rok.chat.me'
    - 'rok.chat.guild'
    - 'rok.help.list'
    - 'codehatch.reporting.players'
    - 'rok.fairplay'
    }
    inherits = ''
    default = 'True'
    nameFormat = '%name%'
    guildFormat = '[21C447][%guild%] %name% : %message%[-]'
    localChatFormat = '[Local] %name% : %message%'
    whisperSendFormat = '[C4257A]%name% >> %message%[-]'
    whisperReceiveFormat = '[D12681]%name% << %message%[-]'
    chatFormat = '%name% : %message%'
    }
    owner {
    nameFormat = '%name%'
    chatFormat = '[000000] %name% : [FFFFFF]%message%'
    guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
    localChatFormat = '[Local] %name% : %message%'
    permissions {
    - '*'
    }
    inherits = ''
    }
    admin {
    nameFormat = '%name%'
    chatFormat = '[00FFDD](ADM) %name% : [FFFFFF]%message%'
    guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
    permissions {
    - '*'
    }
    inherits = ''
    }
    King {
    permissions {
    - 'rok.chat.me'
    - 'rok.chat.guild'
    - 'rok.help.list'
    - 'codehatch.reporting.players'
    - 'rok.fairplay'
    }
    inherits = ''
    default = 'True'
    nameFormat = '%name%'
    chatFormat = '[e9df08](REI) %name% : [FFFFFF]%message%'
    guildFormat = '[21C447][%guild%] %name% : %message%[-]'
    localChatFormat = '[Local] (REI) %name% : %message%'
    whisperSendFormat = '[C4257A]%name% >> %message%[-]'
    whisperReceiveFormat = '[D12681]%name% << %message%[-]'
    # chatFormat2 = \'%name% : %message%\'
    }
    }
    users {
    Jorg Ancrast { # The name listed here should be the same as your name shown in the Users.cfg file
    groups {
    - 'owner'
    }
    permissions {
    }
    }
    XXX { # The name listed here should be the same as your name shown in the Users.cfg file
    groups {
    - 'admin'
    }
    permissions {
    }
    }
    XXX2 { # The name listed here should be the same as your name shown in the Users.cfg file
    groups {
    - 'King'
    }
    permissions {
    }
    }
    }
    macros {
    }
     
  11. So and you wonder why it does not work ?

    you have 4 User groups (Owner, Admin, King and Default)

    you have 3 poeple added to 3 different groups
    (Yourself in Group "Owner" , XXX in Group Admin, and XXX² in Group King)

    ALL of those groups have chat format: %name%: %message%

    AND ALL OTHER people who connect to your server, go to the default Group, which has (%name% : %message%) as a chat format... you actually changed NOTHING....

    and your whole file totally unordered...
     
  12. Sorry, i'm really new at this.
    I'll try to renew all and put some order on the arcquive. Can you post yours to give me ideia how to do properlly?
    [DOUBLEPOST=1470340824][/DOUBLEPOST]Btw, is possible to change /L to 10 meters only?
     
  13. nope ot as of now.

    ok tell me:
    who do you not want to be able to Talk globally?
    default players?
    admins?
    all except you?
     
  14. Sorry if isn't clear, let try:

    default plyers can't use global chat.
    admins can use global chat.

    I did what you asked me in your first answer, but for some reason the %name%: %message% returns to chatFormat when the server starts.

    May I need to wipe the server or can change in the currently game?

    And I want to know if theres is any way to chage local chat to 10~20 meters only, instead 100m (Maybe I need another topic for this, right?).
     
  15. no there is currently no possibility to change the range of Local chat.

    i give you an updated version of your permissions file:

    Code:
    # guest {
    # nameFormat = \'%name%\'
    # guildFormat = \'[00CC00][%guild%] %chatFormat%[-]\'
    # permissions {
    # - \'rok.chat.me\'
    # - \'rok.chat.guild\'
    # - \'rok.help.list\'
    # - \'codehatch.reporting.players\'
    # }
    # }
    groups {
    default {
    permissions {
    - 'rok.chat.me'
    - 'rok.chat.guild'
    - 'rok.help.list'
    - 'codehatch.reporting.players'
    - 'rok.fairplay'
    }
    inherits = ''
    default = 'True'
    nameFormat = '%name%'
    guildFormat = '[21C447][%guild%] %name% : %message%[-]'
    localChatFormat = '[Local] %name% : %message%'
    whisperSendFormat = '[C4257A]%name% >> %message%[-]'
    whisperReceiveFormat = '[D12681]%name% << %message%[-]'
    chatFormat = ''
    }
    owner {
    nameFormat = '%name%'
    chatFormat = '[000000] %name% : [FFFFFF]%message%'
    guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
    localChatFormat = '[Local] %name% : %message%'
    permissions {
    - '*'
    }
    inherits = ''
    }
    admin {
    nameFormat = '%name%'
    chatFormat = '[00FFDD](ADM) %name% : [FFFFFF]%message%'
    guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
    permissions {
    - '*'
    }
    inherits = ''
    }
    King {
    permissions {
    - 'rok.chat.me'
    - 'rok.chat.guild'
    - 'rok.help.list'
    - 'codehatch.reporting.players'
    - 'rok.fairplay'
    }
    inherits = ''
    default = 'True'
    nameFormat = '%name%'
    chatFormat = '[e9df08](REI) %name% : [FFFFFF]%message%'
    guildFormat = '[21C447][%guild%] %name% : %message%[-]'
    localChatFormat = '[Local] (REI) %name% : %message%'
    whisperSendFormat = '[C4257A]%name% >> %message%[-]'
    whisperReceiveFormat = '[D12681]%name% << %message%[-]'
    # chatFormat2 = \'%name% : %message%\'
    }
    }
    users {
    Jorg Ancrast { # The name listed here should be the same as your name shown in the Users.cfg file
    groups {
    - 'owner'
    }
    permissions {
    }
    }
    XXX { # The name listed here should be the same as your name shown in the Users.cfg file
    groups {
    - 'admin'
    }
    permissions {
    }
    }
    XXX2 { # The name listed here should be the same as your name shown in the Users.cfg file
    groups {
    - 'King'
    }
    permissions {
    }
    }
    }
    macros {
    }
     
  16. Thanks a lot, you're very kind!

    Also, I put the info "(Use /L)" in the chatFormat, works like a charm.
     
  17. no problem.
    J