From 2ca1f57946c54308d8867dfa0f688ccf1ce65f2b Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Sun, 30 Dec 2018 22:49:41 +0000 Subject: [PATCH] Fixed require on afkkick --- modules/ExpGamingPlayer/afkKick/control.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ExpGamingPlayer/afkKick/control.lua b/modules/ExpGamingPlayer/afkKick/control.lua index 46718019..0df78969 100644 --- a/modules/ExpGamingPlayer/afkKick/control.lua +++ b/modules/ExpGamingPlayer/afkKick/control.lua @@ -32,6 +32,6 @@ return setmetatable({ on_init=function(self) if loaded_modules['ExpGamingCore.Role'] then Role = require('ExpGamingCore.Role') end if loaded_modules['ExpGamingCore.Sync'] then Sync = require('ExpGamingCore.Sync') end - if loaded_modules['ExpGamingCore.Server'] then require(module_path..'/src/server',Sync,self) end + if loaded_modules['ExpGamingCore.Server'] then require(module_path..'/src/server',{Sync=Sync,self=self}) end end -},{__call=function(self,...) self.get_allowed_afk_time(...) end}) \ No newline at end of file +},{__call=function(self,...) return self.get_allowed_afk_time(...) end}) \ No newline at end of file