Added Role config

This commit is contained in:
Cooldude2606
2019-04-09 21:22:07 +01:00
parent 73a319b220
commit 0e18002375
3 changed files with 139 additions and 23 deletions

View File

@@ -3,7 +3,7 @@ local Commands = require 'expcore.commands'
local Roles = require 'expcore.roles'
Commands.add_authenticator(function(player,command,tags,reject)
if Roles.player_allowed(player,command) then
if Roles.player_allowed(player,'command/'..command) then
return true
else
return reject()