Hi,
I need help with the permissions file.
The problem: I try to give kick,ban and that stuff to 'mod'. But ingame they can't use the command. Did i write the commands wrong or why does it not work?
it only works if i give all commands to them ('*').
MY PERMISSIONS.CFG
# guest { # Unregistered users will use these permissions.
# nameFormat = '%name%'
# chatFormat = '%name% : %message%'
# guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
# DeathMessages {
# - '%victim% wurde von %killer% get�tet.'
# }
# permissions {
# - 'rok.fairplay'
# - 'rok.command.help.list'
# }
# }
groups {
default {
default = 'True'
inherits = 'guest'
nameFormat = '%name%'
chatFormat = '%name% : %message%'
guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
permissions {
- 'rok.fairplay'
- 'rok.command.help.list'
}
}
owner {
nameFormat = '%name%'
chatFormat = '[FFFF00](Owner) %name% : [FFFFFF]%message%'
guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
permissions {
- 'rok.fairplay'
- '*'
}
inherits = ''
}
admin {
nameFormat = '%name%'
chatFormat = '[FFFFFF] %name% : [FFFFFF]%message%'
guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
permissions {
- 'rok.fairplay'
- '*'
}
inherits = ''
}
mod {
nameFormat = '%name%'
chatFormat = '[000099](Support) %name% : [FFFFFF]%message%'
guildFormat = '[00CC00][%guild%] %chatFormat%[-]'
permissions {
- 'rok.fairplay'
- 'codehatch.command.admin.ban'
- 'rok.command.help.list'
- 'codehatch.command.admin.kick'
- 'codehatch.reporting.players'
- 'rok.command.teleport'
- 'rok.command.teleport.coord'
- 'rok.command.teleport.user'
- 'rok.command.teleport.origin'
}
inherits = ''
}
}
users {
NAME01 {
groups {
- 'owner'
}
permissions {
}
}
NAME02 {
groups {
- 'admin'
}
permissions {
}
}
NAME03 {
groups {
- 'mod'
}
permissions {
}
}
}
macros {
}
Solved Using RoK permission system?
Discussion in 'Reign of Kings Discussion' started by Golum, May 10, 2015.
-
Try this out:
Code:# guest { # Unregistered users will use these permissions. # nameFormat = '%name%' # chatFormat = '%name% : %message%' # guildFormat = '[00CC00][%guild%] %chatFormat%[-]' # DeathMessages { # - '%victim% wurde von %killer% get�tet.' # } # permissions { # - 'rok.fairplay' # - 'rok.command.help.list' # } # } default { default = 'True' permissions { - 'rok.chat.me' - 'rok.chat.guild' - 'rok.health.suicide' - 'rok.help.list' - 'rok.fairplay' } nameFormat = '%name%' chatFormat = '%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' } owner { permissions { - '*' } nameFormat = '%name%' chatFormat = '[FFFF00](Owner) %name% : [FFFFFF]%message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' } admin { permissions { - '*' } nameFormat = '%name%' chatFormat = '[FFFFFF] %name% : [FFFFFF]%message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' } mod { # inherits = 'default' nameFormat = '%name%' chatFormat = '[000099](Support) %name% : [FFFFFF]%message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = 'default' permissions { - 'rok.command.teleport' - 'rok.command.teleport.coord' - 'rok.command.teleport.user' - 'rok.command.teleport.origin' - 'codehatch.command.admin.kick' - 'codehatch.command.admin.ban' - 'codehatch.reporting.players' } } users { NAME01 { groups { - 'owner' } permissions { } } NAME02 { groups { - 'admin' } permissions { } } NAME03 { groups { - 'mod' } permissions { } } } macros { }
FYI, for some reason since Alpha 13, name/chat formats don't work in groups. They have to be applied individually to the users. -
Do you mean like (OWNER)NAME or (SUPPORT)NAME ?
It does work for me, one person got support and me owner in name. -
BUT, more importantly, did the permissions.cfg work for you? -
wow.. xd that fucked up everything^^ noone had any commands.
-
Code:# guest { # Unregistered users will use these permissions. # nameFormat = '%name%' # chatFormat = '%name% : %message%' # guildFormat = '[00CC00][%guild%] %chatFormat%[-]' # permissions { # - 'rok.fairplay' # } # } groups { default { default = 'True' permissions { - 'rok.chat.me' - 'rok.chat.guild' - 'rok.health.suicide' - 'rok.help.list' - 'rok.fairplay' } nameFormat = '%name%' chatFormat = '%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' } owner { permissions { - '*' } nameFormat = '%name%' chatFormat = '%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' } admin { permissions { - '*' } nameFormat = '%name%' chatFormat = '%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' } mod { # inherits = 'default' nameFormat = '%name%' chatFormat = '%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = 'default' permissions { - 'rok.command.admin.godmode' - 'rok.command.teleport' - 'rok.command.teleport.coord' - 'rok.command.teleport.user' - 'rok.command.teleport.origin' - 'rok.command.admin.fly' - 'codehatch.command.admin.kick' - 'codehatch.command.admin.ban' } } } users { Insert Name { groups { - 'owner' } permissions { } } Insert Name { groups { - 'admin' } permissions { } } Insert Name { groups { - 'mod' } permissions { } } } macros { }
[DOUBLEPOST=1431389681,1431267622][/DOUBLEPOST]
Did this last file work? Let me know if you're good to go. -
Me owner and the admin is it working again, but the MOD still has no commands. -
The permissions I sent you are a working copy. Just make sure you are putting the name in correctly under Users. Can you post a copy of your current one so I can see if I can spot why it's not working?
-
-
-
Code:
# } groups { default { default = 'True' permissions { - 'rok.command.help.list' - 'rok.fairplay' } nameFormat = '%name%' chatFormat = '%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' } owner { permissions { - '*' } nameFormat = '%name%' chatFormat = '[FFFF00](Owner) %name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' } admin { permissions { - '*' } nameFormat = '%name%' chatFormat = '%name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = '' } mod { # inherits = 'default' nameFormat = '%name%' chatFormat = '[000099](Support) %name% : %message%' guildFormat = '[00CC00][%guild%] %chatFormat%[-]' inherits = 'default' permissions { - 'rok.command.admin.godmode' - 'rok.command.teleport' - 'rok.command.teleport.coord' - 'rok.command.teleport.user' - 'rok.command.teleport.origin' - 'rok.command.admin.fly' - 'codehatch.command.admin.kick' - 'codehatch.command.admin.ban' - 'rok.command.ui.nametag' } } } users { NAME { groups { - 'owner' } permissions { } } NAME { groups { - 'admin' } permissions { } } NAME { groups { - 'mod' } permissions { } } } macros { }
Last edited by a moderator: May 12, 2015 -
Off the bat I can see that you have the wrong line for /shownametags. It should be:
Code:- 'rok.ui.nametag'
-
okay i can wait