Files
factorio-scenario-ExpCluster/config/command_auth_admin.lua
2019-03-14 16:50:44 +00:00

13 lines
318 B
Lua

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)