Cleaned Config

This commit is contained in:
Cooldude2606
2020-03-29 23:39:24 +01:00
parent 5dbc7a5e5c
commit 95af6cfc34
45 changed files with 49 additions and 79 deletions

View File

@@ -0,0 +1,13 @@
--- This will make commands only work if the role has been allowed it in the role config
-- @config Commands-Auth-Roles
local Commands = require 'expcore.commands' --- @dep expcore.commands
local Roles = require 'expcore.roles' --- @dep expcore.roles
Commands.add_authenticator(function(player,command,tags,reject)
if Roles.player_allowed(player,'command/'..command) then
return true
else
return reject()
end
end)