From f39284074b144c4de183c7ae0ed5881df7f92e27 Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Sun, 22 Jan 2017 11:34:11 +0100 Subject: [PATCH] Fixed missing dependencies --- luamods/wolfadmin/commands/client/callvote.lua | 2 ++ luamods/wolfadmin/commands/client/team.lua | 5 +++++ luamods/wolfadmin/commands/client/wolfadmin.lua | 1 - luamods/wolfadmin/commands/commands.lua | 2 -- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/luamods/wolfadmin/commands/client/callvote.lua b/luamods/wolfadmin/commands/client/callvote.lua index 83e1e9a..1e3cfb4 100644 --- a/luamods/wolfadmin/commands/client/callvote.lua +++ b/luamods/wolfadmin/commands/client/callvote.lua @@ -17,6 +17,8 @@ local commands = require (wolfa_getLuaPath()..".commands.commands") +local events = require (wolfa_getLuaPath()..".util.events") + function commandCallVote(clientId, cmdArguments) local voteArguments = {} for i = 2, et.trap_Argc() - 1 do diff --git a/luamods/wolfadmin/commands/client/team.lua b/luamods/wolfadmin/commands/client/team.lua index 3e32fc5..70e93ec 100644 --- a/luamods/wolfadmin/commands/client/team.lua +++ b/luamods/wolfadmin/commands/client/team.lua @@ -17,8 +17,13 @@ local commands = require (wolfa_getLuaPath()..".commands.commands") +local teams = require (wolfa_getLuaPath()..".game.teams") + local players = require (wolfa_getLuaPath()..".players.players") +local util = require (wolfa_getLuaPath()..".util.util") +local settings = require (wolfa_getLuaPath()..".util.settings") + function commandTeam(clientId, cmdArguments) if players.isTeamLocked(clientId) then local clientTeam = tonumber(et.gentity_get(clientId, "sess.sessionTeam")) diff --git a/luamods/wolfadmin/commands/client/wolfadmin.lua b/luamods/wolfadmin/commands/client/wolfadmin.lua index 3b35589..1957bad 100644 --- a/luamods/wolfadmin/commands/client/wolfadmin.lua +++ b/luamods/wolfadmin/commands/client/wolfadmin.lua @@ -15,7 +15,6 @@ -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . -local auth = require (wolfa_getLuaPath()..".auth.auth") local commands = require (wolfa_getLuaPath()..".commands.commands") function commandWolfAdmin(clientId, cmdArguments) diff --git a/luamods/wolfadmin/commands/commands.lua b/luamods/wolfadmin/commands/commands.lua index 8e5d218..b97db5a 100644 --- a/luamods/wolfadmin/commands/commands.lua +++ b/luamods/wolfadmin/commands/commands.lua @@ -19,8 +19,6 @@ require (wolfa_getLuaPath()..".util.debug") local auth = require (wolfa_getLuaPath()..".auth.auth") -local teams = require (wolfa_getLuaPath()..".game.teams") - local players = require (wolfa_getLuaPath()..".players.players") local util = require (wolfa_getLuaPath()..".util.util")