add sborka
This commit is contained in:
21
garrysmod/gamemodes/militaryrp/plugins/sambans/sh_config.lua
Normal file
21
garrysmod/gamemodes/militaryrp/plugins/sambans/sh_config.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
-- Конфигурация синхронизации банов
|
||||
PLUGIN.config = PLUGIN.config or {}
|
||||
|
||||
-- API настройки
|
||||
PLUGIN.config.apiKey = "2Pa7LFR_i9rpg_hFHlMCG_Ri1bDMdX"
|
||||
PLUGIN.config.apiHost = "https://front-team.ru" -- Замените на ваш домен
|
||||
PLUGIN.config.apiEndpoint = "/api/update_ban.php"
|
||||
|
||||
-- Тип банов для синхронизации
|
||||
PLUGIN.config.banType = "server" -- general, server, community
|
||||
|
||||
-- Логирование
|
||||
PLUGIN.config.enableLogging = true
|
||||
|
||||
-- Функция логирования
|
||||
function PLUGIN:Log(message)
|
||||
if (self.config.enableLogging) then
|
||||
print(string.format("[SAM Bans Sync] %s", message))
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user