Update server config descriptions

This commit is contained in:
Linventif 2023-12-16 16:22:23 +01:00
parent b66e088811
commit 01bb974d60
2 changed files with 19 additions and 19 deletions

View File

@ -15,7 +15,7 @@ local configCat = {
local possibleConfig = { local possibleConfig = {
["id"] = { ["id"] = {
["label"] = "ID", ["label"] = "ID",
["description"] = "Your server ID. You can find it on the webpanel.", ["description"] = "Server ID found on the webpanel.",
["type"] = "textEntry", ["type"] = "textEntry",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -28,7 +28,7 @@ local possibleConfig = {
}, },
["token"] = { ["token"] = {
["label"] = "Token", ["label"] = "Token",
["description"] = "Your server Token. You can find it on the webpanel.", ["description"] = "Server Token found on the webpanel.",
["type"] = "textEntry", ["type"] = "textEntry",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -41,7 +41,7 @@ local possibleConfig = {
}, },
["logs"] = { ["logs"] = {
["label"] = "Logs", ["label"] = "Logs",
["description"] = "Activate or deactivate the logs.", ["description"] = "Activate or deactivate logs.",
["type"] = "checkbox", ["type"] = "checkbox",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -53,7 +53,7 @@ local possibleConfig = {
}, },
["filterOnBan"] = { ["filterOnBan"] = {
["label"] = "Block Discord Ban Player", ["label"] = "Block Discord Ban Player",
["description"] = "Block players that are banned on the discord server.", ["description"] = "Block players banned on the discord server.",
["type"] = "checkbox", ["type"] = "checkbox",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -65,7 +65,7 @@ local possibleConfig = {
}, },
["filterOnTrust"] = { ["filterOnTrust"] = {
["label"] = "Block UnTrust Player", ["label"] = "Block UnTrust Player",
["description"] = "", ["description"] = "Block players with a trust level lower than the minimal trust level set in the config.",
["type"] = "checkbox", ["type"] = "checkbox",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -77,7 +77,7 @@ local possibleConfig = {
}, },
["minimalTrust"] = { ["minimalTrust"] = {
["label"] = "Minimal Trust Level", ["label"] = "Minimal Trust Level",
["description"] = "Your server ID. You can find it on the webpanel.", ["description"] = "The minimal trust level to be able to join the server.",
["type"] = "textEntry", ["type"] = "textEntry",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -90,7 +90,7 @@ local possibleConfig = {
}, },
["syncChat"] = { ["syncChat"] = {
["label"] = "Sync Chat", ["label"] = "Sync Chat",
["description"] = "Sync the chat between the server and the discord server.", ["description"] = "Sync chat between the server and the discord server.",
["type"] = "checkbox", ["type"] = "checkbox",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -102,7 +102,7 @@ local possibleConfig = {
}, },
["syncBan"] = { ["syncBan"] = {
["label"] = "Sync Ban", ["label"] = "Sync Ban",
["description"] = "Sync the chat between the server and the discord server.", ["description"] = "Sync chat between the server and the discord server.",
["type"] = "checkbox", ["type"] = "checkbox",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -114,7 +114,7 @@ local possibleConfig = {
}, },
["syncTimeout"] = { ["syncTimeout"] = {
["label"] = "Sync Timeout", ["label"] = "Sync Timeout",
["description"] = "Sync the chat between the server and the discord server.", ["description"] = "Sync chat between the server and the discord server.",
["type"] = "checkbox", ["type"] = "checkbox",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -126,7 +126,7 @@ local possibleConfig = {
}, },
["syncKick"] = { ["syncKick"] = {
["label"] = "Sync Kick", ["label"] = "Sync Kick",
["description"] = "Sync the chat between the server and the discord server.", ["description"] = "Sync chat between the server and the discord server.",
["type"] = "checkbox", ["type"] = "checkbox",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -138,7 +138,7 @@ local possibleConfig = {
}, },
["forcePlayerLink"] = { ["forcePlayerLink"] = {
["label"] = "Force Player Verif", ["label"] = "Force Player Verif",
["description"] = "Sync the chat between the server and the discord server.", ["description"] = "Sync chat between the server and the discord server.",
["type"] = "checkbox", ["type"] = "checkbox",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -150,7 +150,7 @@ local possibleConfig = {
}, },
["supportLink"] = { ["supportLink"] = {
["label"] = "Support Link", ["label"] = "Support Link",
["description"] = "Your server ID. You can find it on the webpanel.", ["description"] = "Server ID found on the webpanel.",
["type"] = "textEntry", ["type"] = "textEntry",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -163,7 +163,7 @@ local possibleConfig = {
}, },
["debug"] = { ["debug"] = {
["label"] = "Debug", ["label"] = "Debug",
["description"] = "Activate or deactivate the debug mode.", ["description"] = "Activate or deactivate debug mode.",
["type"] = "checkbox", ["type"] = "checkbox",
["value"] = function(setting, value) ["value"] = function(setting, value)
return value return value
@ -192,7 +192,7 @@ local buttonsInfo = {
function gmInte.openConfigMenu(data) function gmInte.openConfigMenu(data)
local frame = vgui.Create("DFrame") local frame = vgui.Create("DFrame")
frame:SetSize(400, 400) frame:SetSize(400, (600 / 1080) * ScrH())
frame:Center() frame:Center()
frame:SetTitle("Gmod Integration - Server Config") frame:SetTitle("Gmod Integration - Server Config")
frame:SetDraggable(true) frame:SetDraggable(true)

View File

@ -88,8 +88,8 @@ function gmInte.userFinishConnect(ply)
gmInte.post("/server/user/finishConnect", gmInte.post("/server/user/finishConnect",
{ {
["steam"] = ply:SteamID64(), // essential ["steam"] = ply:SteamID64(),
["name"] = ply:Nick(), // for the syncro name ["name"] = ply:Nick(),
} }
) )
end end
@ -137,9 +137,9 @@ function gmInte.playerChangeName(ply, old, new)
gmInte.post("/server/user/changeName", gmInte.post("/server/user/changeName",
{ {
["steam"] = ply:SteamID64(), ["steamID64"] = ply:SteamID64(),
["old"] = old, ["oldName"] = old,
["new"] = new, ["newName"] = new,
} }
) )
end end