diff --git a/luascripts/wolfadmin/admin/bans.lua b/luascripts/wolfadmin/admin/bans.lua index e96df10..4b204c5 100644 --- a/luascripts/wolfadmin/admin/bans.lua +++ b/luascripts/wolfadmin/admin/bans.lua @@ -58,7 +58,9 @@ function bans.checkStoredBans() end function bans.onInit() - storedBanTimer = timers.add(bans.checkStoredBans, 60000, 0, false, false) + if db.isConnected() then + storedBanTimer = timers.add(bans.checkStoredBans, 60000, 0, false, false) + end end events.handle("onGameInit", bans.onInit)