mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 22:36:03 +01:00
Merge pull request #46 from realCallMeJ/discord-info-fix
fix: not getting discord info on player connecting
This commit is contained in:
@@ -94,12 +94,12 @@ AddEventHandler("playerConnecting", function(name, setKickReason, deferrals)
|
|||||||
local tempSrc = source
|
local tempSrc = source
|
||||||
local identifiers = getIdentifierList(tempSrc)
|
local identifiers = getIdentifierList(tempSrc)
|
||||||
local mainIdentifier = identifiers[Config.characterIdentifier]
|
local mainIdentifier = identifiers[Config.characterIdentifier]
|
||||||
local discordInfo = {}
|
local discordInfo = nil
|
||||||
|
|
||||||
deferrals.defer()
|
deferrals.defer()
|
||||||
Wait(0)
|
Wait(0)
|
||||||
|
|
||||||
if mainIdentifier and Config.discordBotToken ~= "false" and Config.discordGuildId ~= "false" and not discordInfo then
|
if mainIdentifier and Config.discordBotToken ~= "false" and Config.discordGuildId ~= "false" then
|
||||||
discordInfo = checkDiscordIdentifier(identifiers)
|
discordInfo = checkDiscordIdentifier(identifiers)
|
||||||
if not discordInfo then
|
if not discordInfo then
|
||||||
deferrals.done(("Your discord was not found, join our discord here: %s."):format(Config.discordInvite))
|
deferrals.done(("Your discord was not found, join our discord here: %s."):format(Config.discordInvite))
|
||||||
|
|||||||
Reference in New Issue
Block a user