Solved Guild chat

Discussion in 'Reign of Kings Discussion' started by Fields, May 18, 2015.

  1. I'm looking to add guild chat to my server. As of right now, /g and text is not recognized in game. My current permissions.cfg looks like this:

    Code:
    # guest {   # Unregistered users will use these permissions.
    # nameFormat = '%name%'
    # chatFormat = '%name% : %message%'
    # guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
    # permissions {
    # - 'rok.fairplay'
    # }
    # }
    groups {
        default {
            default = 'True'
            inherits = 'guest'
            permissions {
                - 'rok.fairplay'
            }
    # nameFormat = '%name%'
    # chatFormat = '%name% : %message%'
    # nameFormat = '%name%'
    # chatFormat = '%name% : %message%'
        }
        admin {
            permissions {
                - '*'
            }
            inherits = ''
        }
    }
    users {
    'Fields of Ethix' {
    groups {
    - 'admin'
    }
    }
    'Mohaa the Freak of Ethix' {
    groups {
    - 'admin'
    }
    }
    }
    If possible, would like to make the "Guild" part of guild chat yellow. Just not sure how to add the code for it and don't want to take a chance messing something up. Thanks!
     
  2. Just simply take out the # at the start of the lines you want to activate , Also replace guildFormat = '[00CC00][%guild%] %chatFormat%[-]' with
    guildFormat = '[#ffd700][%guild%] %chatFormat%[-]'
     
  3. That simple huh? Thank you very much. Btw, the support over here in fantastic. Thanks again!
    [DOUBLEPOST=1431977696,1431960664][/DOUBLEPOST]
    Code:
    # guest {   # Unregistered users will use these permissions.
    # nameFormat = '%name%'
    # chatFormat = '%name% : %message%'
      guildFormat = '[FFFF00][%guild%] %chatFormat%[-]'
    # permissions {
    # - 'rok.fairplay'
    # }
    # }
    groups {
        default {
            default = 'True'
            inherits = 'guest'
            permissions {
                - 'rok.fairplay'
            }
    # nameFormat = '%name%'
    # chatFormat = '%name% : %message%'
    # nameFormat = '%name%'
    # chatFormat = '%name% : %message%'
        }
        admin {
            permissions {
                - '*'
            }
            inherits = ''
        }
    }
    users {
    'Fields of Ethix' {
    groups {
    - 'admin'
    }
    }
    'Mohaa the Freak of Ethix' {
    groups {
    - 'admin'
    }
    }
    }
    What am I doing wrong? Still no guild chat =(
    [DOUBLEPOST=1431977940][/DOUBLEPOST]I see that I dont have some of the brackets activated. Should i remove the # from both? or can i go ahead and just activate all of that good stuff?
     
  4. Wulf

    Wulf Community Admin

    JSON files don't accept # as comments. You'd need to remove them for it to work. You can verify the format using jsonlint.com.
     
  5. Parse error on line 1:
    guest{ #Unregist
    ^
    Expecting '{', '['

    Thats the error i'm receiving, even after removing # from each of the top lines
     
  6. Wulf

    Wulf Community Admin

    The error still shows a #. ;)
     
  7. boo. one second =P
    [DOUBLEPOST=1431978463][/DOUBLEPOST]
    Code:
    guest{
        nameFormat='%name%'chatFormat='%name%: %message%'guildFormat='[
            FFFF00
        ][
            %guild%
        ]%chatFormat%[
            -
        ]'permissions{
            -'rok.fairplay'
        }
    }groups{
        default{
            default='True'inherits='guest'permissions{
                -'rok.fairplay'
            }#nameFormat='%name%'#chatFormat='%name%: %message%'#nameFormat='%name%'#chatFormat='%name%: %message%'
        }admin{
            permissions{
                -'*'
            }inherits=''
        }
    }users{
        'FieldsofEthix'{
            groups{
                -'admin'
            }
        }'MohaatheFreakofEthix'{
            groups{
                -'admin'
            }
        }
    }
    New error now:
    Parse error on line 1:
    guest{ nameForma
    ^
    Expecting '{', '['
    [DOUBLEPOST=1431978499][/DOUBLEPOST]Im assuming its the bracket at the end of line 2