Added Admin Only Auth

This commit is contained in:
Cooldude2606 committed 2019-03-08 17:50:47 +00:00
1 parent 43b5873530
commit e240551eda
8 files changed
+18 -57

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
local Commands = require 'expcore.commands'
Commands.add_authenticator(function(player,command,tags,reject)
if tags.admin_only then
if player.admin then
return true
else
return reject('This command is for admins only!')
end
else
return true
end
end)