Fixed missing dependency

This commit is contained in:
Timo Smit 2017-01-21 17:28:02 +01:00
parent 9fdd36e772
commit 99817beb31
2 changed files with 4 additions and 0 deletions

View file

@ -19,6 +19,8 @@ local commands = require (wolfa_getLuaPath()..".commands.commands")
local players = require (wolfa_getLuaPath()..".players.players") local players = require (wolfa_getLuaPath()..".players.players")
local settings = require (wolfa_getLuaPath()..".util.settings")
function commandSay(clientId, cmdArguments) function commandSay(clientId, cmdArguments)
if players.isMuted(clientId, players.MUTE_CHAT) then if players.isMuted(clientId, players.MUTE_CHAT) then
et.trap_SendServerCommand(clientId, "cp \"^1You are muted\"") et.trap_SendServerCommand(clientId, "cp \"^1You are muted\"")

View file

@ -19,6 +19,8 @@ local acl = require (wolfa_getLuaPath()..".auth.acl")
local commands = require (wolfa_getLuaPath()..".commands.commands") local commands = require (wolfa_getLuaPath()..".commands.commands")
local settings = require (wolfa_getLuaPath()..".util.settings")
function commandAclListLevels(cmdArguments) function commandAclListLevels(cmdArguments)
for _, level in ipairs(acl.getLevels()) do for _, level in ipairs(acl.getLevels()) do
et.G_Print(string.format("%5d %30s %6d players", level["id"], level["name"], level["players"]).."\n") et.G_Print(string.format("%5d %30s %6d players", level["id"], level["name"], level["players"]).."\n")