diff --git a/server/events.lua b/server/events.lua index 6142244..867115f 100644 --- a/server/events.lua +++ b/server/events.lua @@ -70,13 +70,14 @@ local function onPlayerConnecting(name, setKickReason, deferrals) deferrals.update(Lang:t('info.join_server'), name)) if not license then - deferrals.done(Lang:t('error.no_valid_license')) else + deferrals.done(Lang:t('error.no_valid_license')) elseif isBanned then deferrals.done(Reason) elseif isLicenseAlreadyInUse and QBCore.Config.Server.CheckDuplicateLicense then deferrals.done(Lang:t('error.duplicate_license')) elseif isWhitelist and not whitelisted then - deferrals.done(Lang:t('error.not_whitelisted')) else + deferrals.done(Lang:t('error.not_whitelisted')) + else deferrals.done() if QBCore.Config.Server.UseConnectQueue then Wait(1000)