mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 22:07:34 +00:00
move: local config to cloud config
This commit is contained in:
parent
44480a7499
commit
89d6d502bb
|
@ -8,7 +8,7 @@ local configCat = {
|
||||||
"Authentication",
|
"Authentication",
|
||||||
"Main",
|
"Main",
|
||||||
"Trust & Safety",
|
"Trust & Safety",
|
||||||
"Punishment",
|
-- "Punishment",
|
||||||
"Advanced",
|
"Advanced",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,30 +39,30 @@ local possibleConfig = {
|
||||||
["onEditDelay"] = 0.5,
|
["onEditDelay"] = 0.5,
|
||||||
["category"] = "Authentication"
|
["category"] = "Authentication"
|
||||||
},
|
},
|
||||||
["sendLog"] = {
|
-- ["sendLog"] = {
|
||||||
["label"] = "Logs",
|
-- ["label"] = "Logs",
|
||||||
["description"] = "Activate or deactivate logs.",
|
-- ["description"] = "Activate or deactivate logs.",
|
||||||
["type"] = "checkbox",
|
-- ["type"] = "checkbox",
|
||||||
["value"] = function(setting, value)
|
-- ["value"] = function(setting, value)
|
||||||
return value
|
-- return value
|
||||||
end,
|
-- end,
|
||||||
["onEdit"] = function(setting, value)
|
-- ["onEdit"] = function(setting, value)
|
||||||
saveConfig(setting, value == "Enabled" && true || false)
|
-- saveConfig(setting, value == "Enabled" && true || false)
|
||||||
end,
|
-- end,
|
||||||
["category"] = "Main"
|
-- ["category"] = "Main"
|
||||||
},
|
-- },
|
||||||
["logBotActions"] = {
|
-- ["logBotActions"] = {
|
||||||
["label"] = "Log Bot Actions",
|
-- ["label"] = "Log Bot Actions",
|
||||||
["description"] = "Activate or deactivate logs for bot actions.",
|
-- ["description"] = "Activate or deactivate logs for bot actions.",
|
||||||
["type"] = "checkbox",
|
-- ["type"] = "checkbox",
|
||||||
["value"] = function(setting, value)
|
-- ["value"] = function(setting, value)
|
||||||
return value
|
-- return value
|
||||||
end,
|
-- end,
|
||||||
["onEdit"] = function(setting, value)
|
-- ["onEdit"] = function(setting, value)
|
||||||
saveConfig(setting, value == "Enabled" && true || false)
|
-- saveConfig(setting, value == "Enabled" && true || false)
|
||||||
end,
|
-- end,
|
||||||
["category"] = "Main"
|
-- ["category"] = "Main"
|
||||||
},
|
-- },
|
||||||
["filterOnBan"] = {
|
["filterOnBan"] = {
|
||||||
["label"] = "Block Discord Ban Player",
|
["label"] = "Block Discord Ban Player",
|
||||||
["description"] = "Block players banned on the discord server.",
|
["description"] = "Block players banned on the discord server.",
|
||||||
|
@ -75,90 +75,90 @@ local possibleConfig = {
|
||||||
end,
|
end,
|
||||||
["category"] = "Trust & Safety"
|
["category"] = "Trust & Safety"
|
||||||
},
|
},
|
||||||
["filterOnTrust"] = {
|
-- ["filterOnTrust"] = {
|
||||||
["label"] = "Block UnTrust Player",
|
-- ["label"] = "Block UnTrust Player",
|
||||||
["description"] = "Block players with a trust level lower than the minimal trust level set in the config.",
|
-- ["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
|
||||||
end,
|
-- end,
|
||||||
["onEdit"] = function(setting, value)
|
-- ["onEdit"] = function(setting, value)
|
||||||
saveConfig(setting, value == "Enabled" && true || false)
|
-- saveConfig(setting, value == "Enabled" && true || false)
|
||||||
end,
|
-- end,
|
||||||
["category"] = "Trust & Safety"
|
-- ["category"] = "Trust & Safety"
|
||||||
},
|
-- },
|
||||||
["minimalTrust"] = {
|
-- ["minimalTrust"] = {
|
||||||
["label"] = "Minimal Trust Level",
|
-- ["label"] = "Minimal Trust Level",
|
||||||
["description"] = "The minimal trust level to be able to join the server.",
|
-- ["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
|
||||||
end,
|
-- end,
|
||||||
["onEdit"] = function(setting, value)
|
-- ["onEdit"] = function(setting, value)
|
||||||
saveConfig(setting, value)
|
-- saveConfig(setting, value)
|
||||||
end,
|
-- end,
|
||||||
["onEditDelay"] = 0.5,
|
-- ["onEditDelay"] = 0.5,
|
||||||
["category"] = "Trust & Safety"
|
-- ["category"] = "Trust & Safety"
|
||||||
},
|
-- },
|
||||||
["syncChat"] = {
|
-- ["syncChat"] = {
|
||||||
["label"] = "Sync Chat",
|
-- ["label"] = "Sync Chat",
|
||||||
["description"] = "Sync chat between the server and the discord server.",
|
-- ["description"] = "Sync chat between the server and the discord server.",
|
||||||
["websocket"] = true,
|
-- ["websocket"] = true,
|
||||||
["restart"] = true,
|
-- ["restart"] = true,
|
||||||
["type"] = "checkbox",
|
-- ["type"] = "checkbox",
|
||||||
["value"] = function(setting, value)
|
-- ["value"] = function(setting, value)
|
||||||
return value
|
-- return value
|
||||||
end,
|
-- end,
|
||||||
["onEdit"] = function(setting, value)
|
-- ["onEdit"] = function(setting, value)
|
||||||
saveConfig(setting, value == "Enabled" && true || false)
|
-- saveConfig(setting, value == "Enabled" && true || false)
|
||||||
end,
|
-- end,
|
||||||
["category"] = "Main"
|
-- ["category"] = "Main"
|
||||||
},
|
-- },
|
||||||
["syncBan"] = {
|
-- ["syncBan"] = {
|
||||||
["label"] = "Sync Ban",
|
-- ["label"] = "Sync Ban",
|
||||||
["description"] = "Sync chat between the server and the discord server.",
|
-- ["description"] = "Sync chat between the server and the discord server.",
|
||||||
["type"] = "checkbox",
|
-- ["type"] = "checkbox",
|
||||||
["condition"] = function(data)
|
-- ["condition"] = function(data)
|
||||||
return false // Disabled for now
|
-- return false // Disabled for now
|
||||||
end,
|
-- end,
|
||||||
["value"] = function(setting, value)
|
-- ["value"] = function(setting, value)
|
||||||
return value
|
-- return value
|
||||||
end,
|
-- end,
|
||||||
["onEdit"] = function(setting, value)
|
-- ["onEdit"] = function(setting, value)
|
||||||
saveConfig(setting, value == "Enabled" && true || false)
|
-- saveConfig(setting, value == "Enabled" && true || false)
|
||||||
end,
|
-- end,
|
||||||
["category"] = "Punishment"
|
-- ["category"] = "Punishment"
|
||||||
},
|
-- },
|
||||||
["syncTimeout"] = {
|
-- ["syncTimeout"] = {
|
||||||
["label"] = "Sync Timeout",
|
-- ["label"] = "Sync Timeout",
|
||||||
["description"] = "Sync chat between the server and the discord server.",
|
-- ["description"] = "Sync chat between the server and the discord server.",
|
||||||
["type"] = "checkbox",
|
-- ["type"] = "checkbox",
|
||||||
["condition"] = function(data)
|
-- ["condition"] = function(data)
|
||||||
return false // Disabled for now
|
-- return false // Disabled for now
|
||||||
end,
|
-- end,
|
||||||
["value"] = function(setting, value)
|
-- ["value"] = function(setting, value)
|
||||||
return value
|
-- return value
|
||||||
end,
|
-- end,
|
||||||
["onEdit"] = function(setting, value)
|
-- ["onEdit"] = function(setting, value)
|
||||||
saveConfig(setting, value == "Enabled" && true || false)
|
-- saveConfig(setting, value == "Enabled" && true || false)
|
||||||
end,
|
-- end,
|
||||||
["category"] = "Punishment"
|
-- ["category"] = "Punishment"
|
||||||
},
|
-- },
|
||||||
["syncKick"] = {
|
-- ["syncKick"] = {
|
||||||
["label"] = "Sync Kick",
|
-- ["label"] = "Sync Kick",
|
||||||
["description"] = "Sync chat between the server and the discord server.",
|
-- ["description"] = "Sync chat between the server and the discord server.",
|
||||||
["type"] = "checkbox",
|
-- ["type"] = "checkbox",
|
||||||
["condition"] = function(data)
|
-- ["condition"] = function(data)
|
||||||
return false // Disabled for now
|
-- return false // Disabled for now
|
||||||
end,
|
-- end,
|
||||||
["value"] = function(setting, value)
|
-- ["value"] = function(setting, value)
|
||||||
return value
|
-- return value
|
||||||
end,
|
-- end,
|
||||||
["onEdit"] = function(setting, value)
|
-- ["onEdit"] = function(setting, value)
|
||||||
saveConfig(setting, value == "Enabled" && true || false)
|
-- saveConfig(setting, value == "Enabled" && true || false)
|
||||||
end,
|
-- end,
|
||||||
["category"] = "Punishment"
|
-- ["category"] = "Punishment"
|
||||||
},
|
-- },
|
||||||
["forcePlayerLink"] = {
|
["forcePlayerLink"] = {
|
||||||
["label"] = "Force Player Verif",
|
["label"] = "Force Player Verif",
|
||||||
["description"] = "Sync chat between the server and the discord server.",
|
["description"] = "Sync chat between the server and the discord server.",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
Informations:
|
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.
|
We don't recommend to use a static version of our addon, you should use the workshop version instead.
|
||||||
|
|
||||||
Add Server:
|
Add Server:
|
||||||
|
@ -26,50 +26,22 @@
|
||||||
gmInte.config.id = "" // Server ID
|
gmInte.config.id = "" // Server ID
|
||||||
gmInte.config.token = "" // Server Token
|
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
|
// 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.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.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
|
// 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
|
// Punishment
|
||||||
gmInte.config.syncBan = true // If true, the addon will sync gmod bans with discord bans (and vice versa)
|
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.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)
|
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
|
// Ban
|
||||||
gmInte.config.filterOnBan = true // If true, the addon will filter the players according to their ban status
|
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
|
// Materials
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue
Block a user