Added Role config

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

No files matched your search

+1 -1
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()