Ubuntu-Ansible-Setup/roles/squad-server/templates/SquadJS.vanilla.json.j2

353 lines
11 KiB
Plaintext
Raw Normal View History

2023-01-23 01:13:59 -06:00
{
"server": {
"id": {{ server.server_id }},
"host": "squad",
2023-01-23 01:13:59 -06:00
"queryPort": {{ server.ports.query }},
"rconPort": {{ server.ports.rcon }},
"rconPassword": "{{ server.secrets.rcon_password }}",
"logReaderMode": "tail",
"logDir": "/home/squadjs/SquadLogs",
2023-01-23 01:13:59 -06:00
"ftp": {
"port": 21,
"user": "FTP Username",
"password": "FTP Password",
"useListForSize": false
},
"adminLists": [
{
"type": "local",
"source": "/home/squadjs/SquadConfig/Admins.cfg"
2023-01-23 01:13:59 -06:00
}
2023-09-14 01:52:20 -05:00
{% for listsource in server.remote_admin_list %}
,
{
"type": "remote",
"source": "http://asgard.orion-technologies.io:8000/?grpName={{ listsource | regex_replace(' ', '%20') }}"
}
{% endfor %}
2023-01-23 01:13:59 -06:00
]
},
"connectors": {
"discord": "{{ server.secrets.squadjs_discord_token }}",
"sqlite": {
"dialect": "sqlite",
"storage": "/home/squadjs/data/squadjs.sqlite"
2023-02-03 12:38:44 -06:00
},
2023-02-03 15:39:03 -06:00
"mysql": {
"dialect":"mysql",
"host":"asgard.orion-technologies.io",
"port":3306,
2023-06-27 02:00:26 -05:00
"username":"{{ squad_mysql.user }}",
"password":"{{ squad_mysql.user_password }}",
"database":"{{ squad_mysql.database }}"
2023-02-03 15:39:03 -06:00
}
2023-01-23 01:13:59 -06:00
},
"plugins": [
{
"plugin": "AutoKickUnassigned",
"enabled": true,
"warningMessage": "Join a squad, you are are unassigned and will be kicked",
"kickMessage": "Unassigned - automatically removed",
"frequencyOfWarnings": 30,
"unassignedTimer": 360,
2023-02-14 19:31:11 -06:00
"playerThreshold": 90,
2023-01-23 01:13:59 -06:00
"roundStartDelay": 900,
2023-02-13 07:55:39 -06:00
"ignoreAdmins": true,
2023-01-23 01:13:59 -06:00
"ignoreWhitelist": false
},
{
"plugin": "AutoTKWarn",
"enabled": true,
"attackerMessage": "Please apologise for ALL TKs in ALL chat!",
"victimMessage": null
},
{
"plugin": "CBLInfo",
2023-02-19 17:38:10 -06:00
"enabled": true,
2023-01-23 01:13:59 -06:00
"discordClient": "discord",
2023-02-19 17:38:10 -06:00
"channelID": "1077010353147346984",
2023-02-19 17:55:18 -06:00
"threshold": 6
2023-01-23 01:13:59 -06:00
},
{
"plugin": "ChatCommands",
"enabled": true,
"commands": [
{
"command": "squadjs",
"type": "warn",
"response": "This server is powered by SquadJS.",
"ignoreChats": []
}
]
},
{
"plugin": "DBLog",
2023-02-13 05:39:32 -06:00
"enabled": false,
"database": "mysql",
"overrideServerID": {{ server.server_id }}
2023-01-23 01:13:59 -06:00
},
2023-02-13 05:39:32 -06:00
{
"plugin": "DBLogPlayerTime",
"enabled": true,
"database": "mysql",
2023-02-13 05:41:25 -06:00
"overrideServerID": null,
2023-05-08 13:47:38 -05:00
"seedingThreshold": 50,
2023-05-09 16:35:55 -05:00
"whitelistfilepath": "./autowlfiles/{{ server.docker.name }}-autowl.cfg",
2023-05-08 16:48:59 -05:00
"incseed": 40,
"decseed": 6
2023-02-13 05:39:32 -06:00
},
2023-04-27 07:25:52 -05:00
{
"plugin": "DiscordCheater",
"enabled": true,
2023-04-27 07:31:55 -05:00
"discordClient": "discord",
2023-04-27 07:25:52 -05:00
"channelID": "1101121798046765086"
},
2023-01-23 01:13:59 -06:00
{
"plugin": "DiscordAdminBroadcast",
"enabled": true,
"discordClient": "discord",
"channelID": "1066978042376880148",
"color": 16761867
},
{
"plugin": "DiscordAdminCamLogs",
"enabled": true,
"discordClient": "discord",
"channelID": "1066978122840416357",
"color": 16761867
},
{
"plugin": "DiscordAdminRequest",
"enabled": true,
"discordClient": "discord",
"channelID": "1066978055849005128",
"ignoreChats": [],
"ignorePhrases": [],
"command": "admin",
{% set _pingable_groups = [] %}
{% for group in server.groups %}
{%- if group.squadjs.admin_ping is defined and group.squadjs.admin_ping is true -%} {{ _pingable_groups.append(group) }} {% endif %}
{% endfor %}
"pingGroups": [
{% for group in _pingable_groups %}
"{{ group.name }}"{{ ", " if not loop.last else "" }}
{% endfor %}
],
"pingDelay": 60000,
"color": 16761867,
"warnInGameAdmins": true,
"showInGameAdmins": true
},
{
"plugin": "DiscordChat",
"enabled": true,
"discordClient": "discord",
"channelID": "1066977999196528710",
"chatColors": {},
"color": 16761867,
"ignoreChats": [
]
},
{
"plugin": "DiscordDebug",
"enabled": false,
"discordClient": "discord",
"channelID": "",
"events": []
},
{
"plugin": "DiscordFOBHABExplosionDamage",
"enabled": true,
"discordClient": "discord",
"channelID": "1066978104054124564",
"color": 16761867
},
{
"plugin": "DiscordKillFeed",
"enabled": true,
"discordClient": "discord",
"channelID": "1066978014707060757",
"color": 16761867,
"disableCBL": false
},
{
"plugin": "DiscordPlaceholder",
"enabled": false,
"discordClient": "discord",
"command": "!placeholder",
"channelID": ""
},
{
"plugin": "DiscordRcon",
"enabled": false,
"discordClient": "discord",
"channelID": "",
"permissions": {},
"prependAdminNameInBroadcast": false
},
{
"plugin": "DiscordRoundWinner",
"enabled": false,
"discordClient": "discord",
"channelID": "1066965171400093716",
"color": 16761867
},
{
"plugin": "DiscordRoundEnded",
"enabled": false,
"discordClient": "discord",
"channelID": "1066965171400093716",
"color": 16761867
},
{
"plugin": "DiscordServerStatus",
"enabled": true,
"discordClient": "discord",
2023-06-26 21:33:05 -05:00
"messageStore": "mysql",
2023-01-23 01:13:59 -06:00
"command": "!status",
"disableSubscriptions": false,
"updateInterval": 60000,
"setBotStatus": true
},
{
"plugin": "DiscordSquadCreated",
"enabled": true,
"discordClient": "discord",
"channelID": "1066978080364707880",
"color": 16761867,
"useEmbed": true
},
{
"plugin": "DiscordSubsystemRestarter",
"enabled": false,
"discordClient": "discord",
"role": ""
},
{
"plugin": "DiscordTeamkill",
"enabled": true,
"discordClient": "discord",
"channelID": "1066978028367908864",
"color": 16761867,
"disableCBL": false
},
{
"plugin": "FogOfWar",
"enabled": false,
"mode": 1,
"delay": 10000
},
{
"plugin": "IntervalledBroadcasts",
"enabled": false,
"broadcasts": [],
"interval": 300000
},
{
"plugin": "SeedingMode",
"enabled": false,
"interval": 600000,
"seedingThreshold": 50,
"seedingMessage": "Seeding Rules Active! Fight only over the middle flags! No FOB Hunting!",
"liveEnabled": true,
"liveThreshold": 52,
"liveMessage": "Live!",
"waitOnNewGames": true,
"waitTimeOnNewGame": 30
},
{
"plugin": "SocketIOAPI",
"enabled": false,
"websocketPort": "",
"securityToken": ""
},
{
"plugin": "TeamRandomizer",
"enabled": true,
"command": "randomize"
2023-03-20 12:13:59 -05:00
},
{
2023-03-20 12:29:44 -05:00
"plugin": "SquadNameValidator",
2023-03-20 12:13:59 -05:00
"enabled": true,
"discordClient": "discord",
"channelID": "1066978080364707880",
"warningMessage": "Your squad has been disbanded due to a non-compliant name.",
"rules": [
{
"description": "Disband every ARMOR/ARMOUR/VIC/VEHICLE and other variants",
"type": "regex",
"logic": "match=disband",
2023-05-08 10:18:55 -05:00
"rule": "/(a.?r ?m ?(?:o|e|a|u)* ?r)|((^| )v ?[ie] ?c ?($| ))|(v ?e ?h ?i ?c ?l ?e)|(i ?f ?v)|(a ?p ?c)/",
"warningMessage": "R9 | This name is not a valid vehicle claim! Please name your squad the vehicle you wish to claim."
2023-03-20 12:13:59 -05:00
}
]
2023-03-25 11:29:12 -05:00
},
{
"plugin": "MapVote",
"enabled": true,
"discordClient": "discord",
2023-04-23 20:06:15 -05:00
"entriesAmount": 5,
2023-03-25 11:29:12 -05:00
"entryFormat": "{map_name} {gamemode} {map_version} {factions}",
"automaticVoteStart": true,
2023-09-14 01:31:18 -05:00
"votingDuration": 20,
2023-03-25 11:29:12 -05:00
"minPlayersForVote": 30,
2023-04-24 09:11:44 -05:00
"voteWaitTimeFromMatchStart": 15,
"voteBroadcastInterval": 6,
2023-09-14 01:31:18 -05:00
"numberRecentMapsToExlude": 3,
2023-04-10 17:41:28 -05:00
"automaticSeedingMode": true,
2023-09-14 01:31:18 -05:00
"gamemodeWhitelist": [ "RAAS" ],
2023-07-11 22:15:49 -05:00
"layerFilteringMode": "blacklist",
2023-09-14 01:31:18 -05:00
"layerLevelBlacklist": [ "Kohat", "FoolsRoad", "Kamdesh", "Lashkar", "Logar", "Mestia", "Sumari", "Narva_Invasion_v5", "Narva_RAAS_v5", "Gorodok_RAAS_v04", "Fallujah_RAAS_v7", "AlBasrah_RAAS_v1", "Chora_Invasion", "Fallujah_Invasion", "GooseBay_Invasion_v3", "Gorodok_Invasion_v1", "Fallujah_RAAS_v6", "BlackCoast_Invasion_v2", "BlackCoast_Invasion_v1", "BlackCoast_Invasion_v3", "Mutaha_Invasion_v1", "Narva_Invasion_v3", "Skorpo_Invasion_v2", "Skorpo_Invasion_v3", "Skorpo_Invasion_v4", "Tallil_Tanks_v1", "Tallil_RAAS_v2", "Tallil_RAAS_v7", "Tallil_Invasion_v1", "Tallil_Invasion_v2", "Tallil_Invasion_v5", "Yehorivka_RAAS_v04", "Yehorivka_RAAS_v10", "Yehorivka_RAAS_v05", "Yehorivka_RAAS_v14", "Harju_Invasion_v1", "Harju_Invasion_v3", "Harju_Invasion_v4", "Harju_Invasion_v5", "Harju_RAAS_v2", "Harju_RAAS_v5", "Tallil_RAAS_v3", "Manicouagan_RAAS_v13", "Manicouagan_RAAS_v15" ],
2023-08-27 19:42:09 -05:00
"layerLevelWhitelist": [ "Anvil_RAAS_v4", "Belaya_RAAS_v1", "BlackCoast_RAAS_v1", "GooseBay_Invasion_v3", "Gorodok_Invasion_v2", "Gorodok_RAAS_v06", "Harju_RAAS_v4", "Narva_Invasion_v1", "Narva_RAAS_v2", "Yehorivka_RAAS_v01", "Yehorivka_RAAS_v02", "Gorodok_RAAS_v03", "Skorpo_Invasion_v2", "Belaya_Invasion_v3", "GooseBay_Invasion_v4", "GooseBay_RAAS_v1", "GooseBay_RAAS_v2", "Harju_Invasion_v4", "Mutaha_RAAS_v4", "Yehorivka_RAAS_v10", "Yehorivka_RAAS_v11", "Skorpo_RAAS_v5", "Yehorivka_RAAS_v05", "Skorpo_RAAS_v4", "BlackCoast_Invasion_v5", "BlackCoast_RAAS_v5", "Manicouagan_AAS_v4", "Manicouagan_Invasion_v8", "Manicouagan_Invasion_v9", "Manicouagan_RAAS_v10", "Manicouagan_RAAS_v11", "Manicouagan_RAAS_v12", "Manicouagan_RAAS_v13", "Manicouagan_RAAS_v14", "Manicouagan_RAAS_v15", "Narva_RAAS_v7", "Skorpo_Invasion_v1", "Yehorivka_RAAS_v05", "Narva_RAAS_v7" ],
2023-03-25 11:29:12 -05:00
"applyBlacklistToWhitelist": true,
2023-09-28 00:46:27 -05:00
"factionsBlacklist": [ "MEA" ],
2023-04-23 20:06:15 -05:00
"minRaasEntries": 3,
2023-09-14 01:31:18 -05:00
"minGamemodeEntries": { "raas": 3 },
2023-03-25 11:29:12 -05:00
"hideVotesCount": false,
2023-04-23 20:08:05 -05:00
"showRerollOption": true,
2023-03-25 11:29:12 -05:00
"showRerollOptionInCustomVotes": false,
"voteBroadcastMessage": "MAPVOTE\nVote for the next map by writing in chat the corresponding number!",
"voteWinnerBroadcastMessage": "MAPVOTE\nThe winning layer is\n",
"showWinnerBroadcastMessage": true,
"allowedSameMapEntries": 2,
"logToDiscord": true,
2023-04-25 07:17:34 -05:00
"channelID": "1100392613514858547",
2023-06-27 02:19:52 -05:00
"persistentDataFile": "/home/squadjs/mapvotepdata.data",
2023-03-25 11:29:12 -05:00
"timezone": -4,
"minimumVotesToAcceptResult": 1,
2023-05-24 18:26:27 -05:00
"instantSeedingModePlayerCount": 1,
2023-04-12 01:21:47 -05:00
"nextLayerSeedingModePlayerCount": 30,
2023-04-10 17:41:28 -05:00
"seedingGameMode": "Training"
2023-06-10 17:27:36 -05:00
},
{
"plugin": "Switch",
"commandPrefix": [ "!switch", "!change" ],
"enabled": true,
"discordClient": "discord",
"channelID": "1117217579921051718",
"switchCooldownHours": 2,
"switchEnabledMinutes": 5,
"doubleSwitchCommands": [ "!bug", "!stuck", "!doubleswitch", "!runningman" ],
"doubleSwitchCooldownHours": 0.5,
"doubleSwitchEnabledMinutes": 5,
"maxUnbalancedSlots": 5,
"switchToOldTeamAfterRejoin": true,
"database": "mysql"
}
2023-01-23 01:13:59 -06:00
],
"logger": {
"verboseness": {
2023-02-15 23:52:02 -06:00
"SquadServer": 0,
"LogParser": 0,
"RCON": 3
2023-01-23 01:13:59 -06:00
},
"colors": {
"SquadServer": "yellowBright",
"SquadServerFactory": "yellowBright",
"LogParser": "blueBright",
"RCON": "redBright"
}
}
}