diff --git a/lua/gmod_integration/client/cl_gui_admin.lua b/lua/gmod_integration/client/cl_gui_admin.lua index d5840f1..f0b0f59 100644 --- a/lua/gmod_integration/client/cl_gui_admin.lua +++ b/lua/gmod_integration/client/cl_gui_admin.lua @@ -8,7 +8,7 @@ local configCat = { "Authentication", "Main", "Trust & Safety", - "Punishment", + -- "Punishment", "Advanced", } @@ -39,30 +39,30 @@ local possibleConfig = { ["onEditDelay"] = 0.5, ["category"] = "Authentication" }, - ["sendLog"] = { - ["label"] = "Logs", - ["description"] = "Activate or deactivate logs.", - ["type"] = "checkbox", - ["value"] = function(setting, value) - return value - end, - ["onEdit"] = function(setting, value) - saveConfig(setting, value == "Enabled" && true || false) - end, - ["category"] = "Main" - }, - ["logBotActions"] = { - ["label"] = "Log Bot Actions", - ["description"] = "Activate or deactivate logs for bot actions.", - ["type"] = "checkbox", - ["value"] = function(setting, value) - return value - end, - ["onEdit"] = function(setting, value) - saveConfig(setting, value == "Enabled" && true || false) - end, - ["category"] = "Main" - }, + -- ["sendLog"] = { + -- ["label"] = "Logs", + -- ["description"] = "Activate or deactivate logs.", + -- ["type"] = "checkbox", + -- ["value"] = function(setting, value) + -- return value + -- end, + -- ["onEdit"] = function(setting, value) + -- saveConfig(setting, value == "Enabled" && true || false) + -- end, + -- ["category"] = "Main" + -- }, + -- ["logBotActions"] = { + -- ["label"] = "Log Bot Actions", + -- ["description"] = "Activate or deactivate logs for bot actions.", + -- ["type"] = "checkbox", + -- ["value"] = function(setting, value) + -- return value + -- end, + -- ["onEdit"] = function(setting, value) + -- saveConfig(setting, value == "Enabled" && true || false) + -- end, + -- ["category"] = "Main" + -- }, ["filterOnBan"] = { ["label"] = "Block Discord Ban Player", ["description"] = "Block players banned on the discord server.", @@ -75,90 +75,90 @@ local possibleConfig = { end, ["category"] = "Trust & Safety" }, - ["filterOnTrust"] = { - ["label"] = "Block UnTrust Player", - ["description"] = "Block players with a trust level lower than the minimal trust level set in the config.", - ["type"] = "checkbox", - ["value"] = function(setting, value) - return value - end, - ["onEdit"] = function(setting, value) - saveConfig(setting, value == "Enabled" && true || false) - end, - ["category"] = "Trust & Safety" - }, - ["minimalTrust"] = { - ["label"] = "Minimal Trust Level", - ["description"] = "The minimal trust level to be able to join the server.", - ["type"] = "textEntry", - ["value"] = function(setting, value) - return value - end, - ["onEdit"] = function(setting, value) - saveConfig(setting, value) - end, - ["onEditDelay"] = 0.5, - ["category"] = "Trust & Safety" - }, - ["syncChat"] = { - ["label"] = "Sync Chat", - ["description"] = "Sync chat between the server and the discord server.", - ["websocket"] = true, - ["restart"] = true, - ["type"] = "checkbox", - ["value"] = function(setting, value) - return value - end, - ["onEdit"] = function(setting, value) - saveConfig(setting, value == "Enabled" && true || false) - end, - ["category"] = "Main" - }, - ["syncBan"] = { - ["label"] = "Sync Ban", - ["description"] = "Sync chat between the server and the discord server.", - ["type"] = "checkbox", - ["condition"] = function(data) - return false // Disabled for now - end, - ["value"] = function(setting, value) - return value - end, - ["onEdit"] = function(setting, value) - saveConfig(setting, value == "Enabled" && true || false) - end, - ["category"] = "Punishment" - }, - ["syncTimeout"] = { - ["label"] = "Sync Timeout", - ["description"] = "Sync chat between the server and the discord server.", - ["type"] = "checkbox", - ["condition"] = function(data) - return false // Disabled for now - end, - ["value"] = function(setting, value) - return value - end, - ["onEdit"] = function(setting, value) - saveConfig(setting, value == "Enabled" && true || false) - end, - ["category"] = "Punishment" - }, - ["syncKick"] = { - ["label"] = "Sync Kick", - ["description"] = "Sync chat between the server and the discord server.", - ["type"] = "checkbox", - ["condition"] = function(data) - return false // Disabled for now - end, - ["value"] = function(setting, value) - return value - end, - ["onEdit"] = function(setting, value) - saveConfig(setting, value == "Enabled" && true || false) - end, - ["category"] = "Punishment" - }, + -- ["filterOnTrust"] = { + -- ["label"] = "Block UnTrust Player", + -- ["description"] = "Block players with a trust level lower than the minimal trust level set in the config.", + -- ["type"] = "checkbox", + -- ["value"] = function(setting, value) + -- return value + -- end, + -- ["onEdit"] = function(setting, value) + -- saveConfig(setting, value == "Enabled" && true || false) + -- end, + -- ["category"] = "Trust & Safety" + -- }, + -- ["minimalTrust"] = { + -- ["label"] = "Minimal Trust Level", + -- ["description"] = "The minimal trust level to be able to join the server.", + -- ["type"] = "textEntry", + -- ["value"] = function(setting, value) + -- return value + -- end, + -- ["onEdit"] = function(setting, value) + -- saveConfig(setting, value) + -- end, + -- ["onEditDelay"] = 0.5, + -- ["category"] = "Trust & Safety" + -- }, + -- ["syncChat"] = { + -- ["label"] = "Sync Chat", + -- ["description"] = "Sync chat between the server and the discord server.", + -- ["websocket"] = true, + -- ["restart"] = true, + -- ["type"] = "checkbox", + -- ["value"] = function(setting, value) + -- return value + -- end, + -- ["onEdit"] = function(setting, value) + -- saveConfig(setting, value == "Enabled" && true || false) + -- end, + -- ["category"] = "Main" + -- }, + -- ["syncBan"] = { + -- ["label"] = "Sync Ban", + -- ["description"] = "Sync chat between the server and the discord server.", + -- ["type"] = "checkbox", + -- ["condition"] = function(data) + -- return false // Disabled for now + -- end, + -- ["value"] = function(setting, value) + -- return value + -- end, + -- ["onEdit"] = function(setting, value) + -- saveConfig(setting, value == "Enabled" && true || false) + -- end, + -- ["category"] = "Punishment" + -- }, + -- ["syncTimeout"] = { + -- ["label"] = "Sync Timeout", + -- ["description"] = "Sync chat between the server and the discord server.", + -- ["type"] = "checkbox", + -- ["condition"] = function(data) + -- return false // Disabled for now + -- end, + -- ["value"] = function(setting, value) + -- return value + -- end, + -- ["onEdit"] = function(setting, value) + -- saveConfig(setting, value == "Enabled" && true || false) + -- end, + -- ["category"] = "Punishment" + -- }, + -- ["syncKick"] = { + -- ["label"] = "Sync Kick", + -- ["description"] = "Sync chat between the server and the discord server.", + -- ["type"] = "checkbox", + -- ["condition"] = function(data) + -- return false // Disabled for now + -- end, + -- ["value"] = function(setting, value) + -- return value + -- end, + -- ["onEdit"] = function(setting, value) + -- saveConfig(setting, value == "Enabled" && true || false) + -- end, + -- ["category"] = "Punishment" + -- }, ["forcePlayerLink"] = { ["label"] = "Force Player Verif", ["description"] = "Sync chat between the server and the discord server.", diff --git a/lua/gmod_integration/sv_config.lua b/lua/gmod_integration/sv_config.lua index a578054..d905e78 100644 --- a/lua/gmod_integration/sv_config.lua +++ b/lua/gmod_integration/sv_config.lua @@ -1,6 +1,6 @@ /* Informations: - This file is prioritized over the configuration file in data/gmod-integration/config.json until the id are set. + This file is prioritized over the configuration file in data/gmod-integration/config.json if id and token are set in this file. We don't recommend to use a static version of our addon, you should use the workshop version instead. Add Server: @@ -26,50 +26,22 @@ gmInte.config.id = "" // Server ID gmInte.config.token = "" // Server Token -// Websocket -/* - This is a premium feature, you can buy premium on our website: https://gmod-integration.com/premium - Websocket allow you to made a real-time connection between your server and our servers. - And so use the real-time features of our addon (like the chat syncronization, role syncronization, ...) -*/ -gmInte.config.websocket = false // If true, the addon will use the websocket instead of the http requests - // Other gmInte.config.forcePlayerLink = false // If true, the addon will force the players to link their discord account to their steam account before playing gmInte.config.supportLink = "" // The link of your support (shown when a player do not have the requiments to join the server) -gmInte.config.logBotActions = false // If true, the addon will log the messages of the bot in the console // // Syncronization // -// General -gmInte.config.syncChat = false // If true, the addon will sync the chat gmod with a selected channel on discord (need to be enabled on the dashboard) -gmInte.config.syncPlayerStat = true // If true, the addon will sync the player stats (kills, deaths, playtime, ...) - // Punishment gmInte.config.syncBan = true // If true, the addon will sync gmod bans with discord bans (and vice versa) gmInte.config.syncTimeout = false // If true, the addon will sync gmod timeouts with discord timeouts (and vice versa) gmInte.config.syncKick = false // If true, the addon will sync gmod kicks with discord kicks (and vice versa) -// -// Player Filter -// - -// Trust Factor -gmInte.config.minimalTrust = 30 // The minimal trust factor of an user to be able to join the server (0 to 100) -gmInte.config.filterOnTrust = true // If true, the addon will filter the players according to their trust factor - // Ban gmInte.config.filterOnBan = true // If true, the addon will filter the players according to their ban status -// -// Features Kill Switch -// - -// Will disable the features of the addon -gmInte.config.sendLog = false // Disable the logs - // // Materials //