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:
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!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' } } }
Solved Guild chat
Discussion in 'Reign of Kings Discussion' started by Fields, May 18, 2015.
-
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%[-]' -
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' } } }
[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? -
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.
-
Parse error on line 1:
guest{ #Unregist
^
Expecting '{', '['
Thats the error i'm receiving, even after removing # from each of the top lines -
Wulf Community Admin
-
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' } } }
Parse error on line 1:
guest{ nameForma
^
Expecting '{', '['
[DOUBLEPOST=1431978499][/DOUBLEPOST]Im assuming its the bracket at the end of line 2