Skip to content

Commit

Permalink
change matchingIdentifiers to 1 for compat reasons and fix another thing
Browse files Browse the repository at this point in the history
  • Loading branch information
Blumlaut committed Jun 17, 2019
1 parent 3f015a4 commit db5c4ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions admin_server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Citizen.CreateThread(function()
else
enableDebugging = false
end
minimumMatchingIdentifiers = GetConvarInt("ea_minIdentifierMatches", 2)
minimumMatchingIdentifiers = GetConvarInt("ea_minIdentifierMatches", 1)

RegisterServerEvent('EasyAdmin:amiadmin')
AddEventHandler('EasyAdmin:amiadmin', function()
Expand Down Expand Up @@ -562,6 +562,7 @@ Citizen.CreateThread(function()
SaveResourceFile(GetCurrentResourceName(), "banlist.json", json.encode({}), -1)
content = json.encode({})
end
blacklist = json.decode(content)


local txtcontent = LoadResourceFile(GetCurrentResourceName(), "banlist.txt") -- compat
Expand All @@ -581,7 +582,7 @@ Citizen.CreateThread(function()
SaveResourceFile(GetCurrentResourceName(), "banlist.json", json.encode(blacklist, {indent = true}), -1)
end

blacklist = json.decode(content)

PrintDebugMessage("updated banlist")
if not blacklist then
print("^1-^2-^3-^4-^5-^6-^8-^9-^1-^2-^3-^4-^5-^6-^8-^9-^1-^2-^3-^3!^1FATAL ERROR^3!^3-^2-^1-^9-^8-^6-^5-^4-^3-^2-^1-^9-^8-^6-^5-^4-^3-^2-^7\n")
Expand Down

0 comments on commit db5c4ef

Please sign in to comment.