This commit is contained in:
Tony
2022-03-24 16:59:51 +01:00
committed by GitHub
parent 8265bf1720
commit 98b1d10504
+3 -2
View File
@@ -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)