Skip to content

Commit

Permalink
2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
FAXES authored Aug 7, 2020
1 parent 6b41c5e commit 3dab476
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
--- Config ---
notWhitelistedMessage = "You are not whitelisted for this server." -- Message displayed when they are not whitelist with the role

whitelistRoles = { -- Role nickname(s) needed to pass the whitelist
whitelistRoles = { -- Role IDs needed to pass the whitelist
"DISCORD_ROLE_ID",
"DISCORD_ROLE_ID",
"DISCORD_ROLE_ID",
Expand All @@ -18,7 +18,6 @@ AddEventHandler("playerConnecting", function(name, setCallback, deferrals)
local src = source
local passAuth = false
deferrals.defer()
deferrals.update("Checking Permissions...")

for k, v in ipairs(GetPlayerIdentifiers(src)) do
if string.sub(v, 1, string.len("discord:")) == "discord:" then
Expand Down

0 comments on commit 3dab476

Please sign in to comment.