mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
50
gamemodes/helix/plugins/betterlogs/sh_plugin.lua
Normal file
50
gamemodes/helix/plugins/betterlogs/sh_plugin.lua
Normal file
@@ -0,0 +1,50 @@
|
||||
--[[
|
||||
| This file was obtained through the combined efforts
|
||||
| of Madbluntz & Plymouth Antiquarian Society.
|
||||
|
|
||||
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||||
| Maloy, DrPepper10 @ RIP, Atle!
|
||||
|
|
||||
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||||
--]]
|
||||
|
||||
local ix = ix
|
||||
local CAMI = CAMI
|
||||
local LocalPlayer = LocalPlayer
|
||||
|
||||
local PLUGIN = PLUGIN
|
||||
|
||||
PLUGIN.name = "Better Logs"
|
||||
PLUGIN.author = "AleXXX_007"
|
||||
PLUGIN.description = "Saves logs in a database and allows permitted staff to look them up."
|
||||
|
||||
ix.util.Include("cl_hooks.lua")
|
||||
ix.util.Include("sv_hooks.lua")
|
||||
|
||||
CAMI.RegisterPrivilege({
|
||||
Name = "Helix - Manage Logs",
|
||||
MinAccess = "admin"
|
||||
})
|
||||
|
||||
CAMI.RegisterPrivilege({
|
||||
Name = "Helix - Tp",
|
||||
MinAccess = "admin"
|
||||
})
|
||||
|
||||
ix.lang.AddTable("english", {
|
||||
optLogDefaultTime = "Default Log Search Time",
|
||||
optdLogDefaultTime = "The default amount of time to search back for in the log search tool."
|
||||
})
|
||||
|
||||
ix.lang.AddTable("spanish", {
|
||||
optdLogDefaultTime = "La cantidad de tiempo por defecto para buscar en la herramienta de búsqueda de registros.",
|
||||
optLogDefaultTime = "Tiempo de búsqueda de registros por defecto"
|
||||
})
|
||||
|
||||
ix.option.Add("logDefaultTime", ix.type.string, "1d", {
|
||||
bNetworked = true,
|
||||
category = "administration",
|
||||
hidden = function()
|
||||
return !CAMI.PlayerHasAccess(LocalPlayer(), "Helix - Manage Logs", nil)
|
||||
end
|
||||
})
|
||||
Reference in New Issue
Block a user