Skip to content

Commit 9696ef3

Browse files
committed
XD
1 parent 8010422 commit 9696ef3

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

broadcasts/commands.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
onRun = function(client, arguments)
77
local message = table.concat(arguments, " ", 1)
88
if not message then return L("invalidArg") end
9-
if not client:getChar():hasFlags("D") and not client:hasPrivilege("Staff Permissions - Can Use Class Broadcast") then
9+
if not client:getChar():hasFlags("D") and not client:hasPrivilege("Can Use Class Broadcast") then
1010
client:notifyLocalized("classBroadcastNoPermission")
1111
return false
1212
end
@@ -61,7 +61,7 @@ lia.command.add("factionbroadcast", {
6161
onRun = function(client, arguments)
6262
local message = table.concat(arguments, " ", 1)
6363
if not message then return L("invalidArg") end
64-
if not client:getChar():hasFlags("B") and not client:hasPrivilege("Staff Permissions - Can Use Faction Broadcast") then
64+
if not client:getChar():hasFlags("B") and not client:hasPrivilege("Can Use Faction Broadcast") then
6565
client:notifyLocalized("factionBroadcastNoPermission")
6666
return false
6767
end

broadcasts/module.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ MODULE.desc = "Allows staff to broadcast messages to chosen factions or classes.
77
MODULE.Features = {"Adds faction and class broadcast commands with CAMI checks", "Adds logging of broadcast messages for staff review", "Adds support for flagged players to send targeted messages", "Adds CAMI privileges for broadcast access", "Adds menus to select factions or classes"}
88
MODULE.Privileges = {
99
{
10-
Name = "Staff Permissions - Can Use Faction Broadcast",
10+
Name = "Can Use Faction Broadcast",
1111
MinAccess = "superadmin",
1212
},
1313
{
14-
Name = "Staff Permissions - Can Use Class Broadcast",
14+
Name = "Can Use Class Broadcast",
1515
MinAccess = "superadmin",
1616
}
1717
}

developmenthud/libraries/client.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
local devFont = lia.config.get("DevHudFont")
66
local x = ScrW() / 5.25
77
local baseY = ScrH() / 1.12
8-
if client:hasPrivilege("Staff Permissions - Development HUD") then draw.SimpleText("| " .. client:SteamID64() .. " | " .. client:SteamID() .. " | " .. os.date("%m/%d/%Y | %X", os.time()) .. " | ", devFont, x, baseY, Color(210, 210, 210, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER) end
9-
if client:hasPrivilege("Staff Permissions - Staff HUD") then
8+
if client:hasPrivilege("Development HUD") then draw.SimpleText("| " .. client:SteamID64() .. " | " .. client:SteamID() .. " | " .. os.date("%m/%d/%Y | %X", os.time()) .. " | ", devFont, x, baseY, Color(210, 210, 210, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_CENTER) end
9+
if client:hasPrivilege("Staff HUD") then
1010
local trace = client:GetEyeTraceNoCursor()
1111
local hitPos = trace.HitPos
1212
local ent = trace.Entity

developmenthud/module.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ MODULE.version = 1.18
55
MODULE.desc = "Shows a staff-only HUD with live performance metrics and other development data. Access requires a CAMI privilege and can be toggled as needed."
66
MODULE.Privileges = {
77
{
8-
Name = "Staff Permissions - Staff HUD",
8+
Name = "Staff HUD",
99
MinAccess = "superadmin",
1010
},
1111
{
12-
Name = "Staff Permissions - Development HUD",
12+
Name = "Development HUD",
1313
MinAccess = "superadmin",
1414
}
1515
}

inventory/submodules/storage/libraries/server.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ end
4949

5050
function MODULE:CanPlayerSpawnStorage(client, _, info)
5151
if not client then return true end
52-
if not client:hasPrivilege("Staff Permissions - Can Spawn Storage") then return false end
52+
if not client:hasPrivilege("Can Spawn Storage") then return false end
5353
if not info.invType or not lia.inventory.types[info.invType] then return false end
5454
end
5555

inventory/submodules/storage/module.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ MODULE.version = 1.06
55
MODULE.desc = "Adds spawnable containers that integrate with the weight-based inventory. Contents persist and creation requires a staff privilege."
66
MODULE.Privileges = {
77
{
8-
Name = "Staff Permissions - Can Spawn Storage",
8+
Name = "Can Spawn Storage",
99
MinAccess = "superadmin",
1010
}
1111
}

inventory/submodules/vendor/module.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ MODULE.desc = "Creates NPC vendors with editable inventories and starting funds.
66
MODULE.Features = {"Adds NPC vendors that sell items", "Adds editable inventory menus", "Adds configurable default money", "Adds transaction logs for purchases", "Adds vendor restock timers"}
77
MODULE.Privileges = {
88
{
9-
Name = "Staff Permissions - Can Edit Vendors",
9+
Name = "Can Edit Vendors",
1010
MinAccess = "admin",
1111
},
1212
}

warrants/meta/sh_player.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ if SERVER then
2525
end
2626

2727
function characterMeta:CanWarrantPlayers()
28-
return self:hasFlags("P") or self:hasPrivilege("Staff Permissions - Can Warrant People")
28+
return self:hasFlags("P") or self:hasPrivilege("Can Warrant People")
2929
end
3030

3131
function characterMeta:CanSeeWarrantsIssued()
3232
local faction = lia.faction.indices[self:Team()]
33-
return self:hasPrivilege("Staff Permissions - Can See Warrant Notifications") or faction.CanSeeWarrantsNotifications
33+
return self:hasPrivilege("Can See Warrant Notifications") or faction.CanSeeWarrantsNotifications
3434
end
3535

3636
function characterMeta:IsWanted()
@@ -39,6 +39,6 @@ if SERVER then
3939

4040
function characterMeta:CanSeeWarrants()
4141
local faction = lia.faction.indices[self:Team()]
42-
return self:hasPrivilege("Staff Permissions - Can See Warrants") or faction.CanSeeWarrants
42+
return self:hasPrivilege("Can See Warrants") or faction.CanSeeWarrants
4343
end
4444
end

warrants/module.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ MODULE.desc = "Implements a warrant system so staff can issue, view, and revoke
77
MODULE.Features = {"Adds ability to issue and remove player warrants", "Adds notifications displayed to players", "Adds logging of all warrant actions", "Adds CAMI privileges for warrant management", "Adds timed expiration for warrants"}
88
MODULE.Privileges = {
99
{
10-
Name = "Staff Permissions - Can Warrant People",
10+
Name = "Can Warrant People",
1111
MinAccess = "superadmin",
1212
},
1313
{
14-
Name = "Staff Permissions - Can See Warrants",
14+
Name = "Can See Warrants",
1515
MinAccess = "superadmin",
1616
},
1717
{
18-
Name = "Staff Permissions - Can See Warrant Notifications",
18+
Name = "Can See Warrant Notifications",
1919
MinAccess = "superadmin",
2020
},
2121
}

0 commit comments

Comments
 (0)