From c290e31465e25f4302554a7280dcfdd9cb3a323b Mon Sep 17 00:00:00 2001 From: Linventif Date: Wed, 20 Sep 2023 17:22:57 +0200 Subject: [PATCH] add a lot of config --- lua/gmod_integration/sv_config.lua | 63 +++++++++++++++++++++++++++--- 1 file changed, 57 insertions(+), 6 deletions(-) diff --git a/lua/gmod_integration/sv_config.lua b/lua/gmod_integration/sv_config.lua index 37041e3..35d2b64 100644 --- a/lua/gmod_integration/sv_config.lua +++ b/lua/gmod_integration/sv_config.lua @@ -1,10 +1,61 @@ /* - This file is used to configure the communication between your server and "Garry's Mod Integration" API - The server ID and Token are available on your server with the /server list command, before this you will need to register your server with /server add - If you need help, please contact us on our discord server: https://gmod-integration.com/discord + Informations: + This file is prioritized over the configuration file in data/gmod-integration/config.json until the id are set. + We don't recommend to use a static version of our addon, you should use the workshop version instead. - Note: This file is prioritized over the configuration file in data/gmod-integration/config.json until the id is not empty + Add Server: + 1. Go to our dashboard and Login with Discord: https://gmod-integration.com/login + 2. Go to the "Servers" page: https://gmod-integration.com/servers + 3. Click on "Add Server" + 4. Fill the form and click on "Add Server" + 5. Copy the ID and Token of your server and paste them in this file + 6. Everything is ready, you can now restart your server + + To go further, you can check the documentation: https://docs.gmod-integration.com + + WARNING: + NEVER SHARE THE TOKEN OF YOUR SERVER WITH ANYONE, + IF ANY PROBLEM OCCURS, GO TO OUR WEBSITE AND FOLLOW THE INSTRUCTIONS: + https://gmod-integration.com/emergency */ -gmInte.config.id = "" // Server ID (normally 10 characters) -gmInte.config.token = "" // Server Token (normally 16 characters) \ No newline at end of file +// +// General +// + +// API Connection +gmInte.config.id = "" // Server ID +gmInte.config.token = "" // Server Token + +// Chat +gmInte.config.chatTriggerAll = false // If true, the addon will sync all the messages in the chat +gmInte.config.chatTrigger = { + ["// "] = true, +} // If chatTriggerAll is false, the addon will sync the messages that start with one of the following triggers + +// Other +gmInte.config.forcePlayerLink = false // If true, the addon will force the players to link their discord account to their steam account before playing + +// +// Syncronization +// + +// General +gmInte.config.syncChat = true // If true, the addon will sync the chat gmod with a selected channel on discord +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