Skip to content

Commit e58aeb8

Browse files
committed
more localization.
1 parent 3de6402 commit e58aeb8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

sv_ace_perms.lua

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ local _GetIdentifiersTable = GetIdentifiersTable
77
local _getRoles = getRoles
88
local _ExecuteCommand = ExecuteCommand
99
local _GetPlayerName = GetPlayerName
10+
local _Log = Log
1011

1112
local groups = Config.Groups
1213
local permissions = Config.Permissions
@@ -44,14 +45,14 @@ local function applyPermissions(source)
4445

4546
if not groupInformation then goto skipGroupInformation end
4647
_ExecuteCommand(groupAdd:format(license, groupInformation))
47-
Log("Granted \"" .. groupInformation.. "\" to " .. name .. " (" .. license .. ").")
48+
_Log("Granted \"" .. groupInformation.. "\" to " .. name .. " (" .. license .. ").")
4849
::skipGroupInformation::
4950

5051
if not permissionInformation then goto skipPermissionInformation end
51-
Log("Granting permission set for role ID: " .. v .. ".")
52+
_Log("Granting permission set for role ID: " .. v .. ".")
5253
for _, v2 in pairs(permissionInformation) do
5354
_ExecuteCommand(permissionAdd:format(license, v2))
54-
Log("Granted \"" .. v2.. "\" to " .. name .. " (" .. license .. ") due to them having the role ID: " .. v .. ".")
55+
_Log("Granted \"" .. v2.. "\" to " .. name .. " (" .. license .. ") due to them having the role ID: " .. v .. ".")
5556
end
5657
::skipPermissionInformation::
5758
end

sv_deferrals.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
if not Config.DiscordRequired then return end
22

33
local _GetIdentifiersTable = GetIdentifiersTable
4+
local _isInGuild = isInGuild
45

56
local GuildRequired = Config.GuildRequired
67

@@ -16,7 +17,7 @@ AddEventHandler("playerConnecting", function(_, _, deferrals)
1617
return
1718
end
1819

19-
if GuildRequired and not isInGuild(source) then
20+
if GuildRequired and not _isInGuild(source) then
2021
deferrals.done("You must be in the Discord server to join this server.")
2122
return
2223
end

0 commit comments

Comments
 (0)