From baa07ea025892671970673b39c20092c15dbc85d Mon Sep 17 00:00:00 2001 From: Thomas Smyth Date: Wed, 2 Sep 2020 13:20:07 +0100 Subject: [PATCH 1/3] Prevent debug replacing event contents --- plugins/discord-debug/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/discord-debug/index.js b/plugins/discord-debug/index.js index 524a663f..65592807 100644 --- a/plugins/discord-debug/index.js +++ b/plugins/discord-debug/index.js @@ -30,8 +30,7 @@ export default { for (const event of options.events) { server.on(event, (info) => { - info.event = event; - channel.send(`\`\`\`${JSON.stringify(info, null, 2)}\`\`\``); + channel.send(`\`\`\`${JSON.stringify({ ...info, event }, null, 2)}\`\`\``); }); } } From 59052b2350943ee01b7534dc32a56529e5f15a64 Mon Sep 17 00:00:00 2001 From: Thomas Smyth Date: Wed, 2 Sep 2020 13:20:44 +0100 Subject: [PATCH 2/3] Fix broken TK events --- plugins/auto-tk-warn/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/auto-tk-warn/index.js b/plugins/auto-tk-warn/index.js index 1b3613dc..9277fd22 100644 --- a/plugins/auto-tk-warn/index.js +++ b/plugins/auto-tk-warn/index.js @@ -16,11 +16,11 @@ export default { } }, - init: async (server, connectors, options) => { + init: async (server, options) => { server.on(LOG_PARSER_TEAMKILL, (info) => { // ignore suicides if (info.attacker.steamID === info.victim.steamID) return; - server.rcon.execute(`AdminWarn "${info.attacker.steamID}" ${options.message}`); + server.rcon.warn(info.attacker.steamID, options.message); }); } }; From 6c4da74dcb784e0f9f48dd2349ae953c9b08490a Mon Sep 17 00:00:00 2001 From: Thomas Smyth Date: Wed, 2 Sep 2020 13:21:46 +0100 Subject: [PATCH 3/3] SquadJS v1.3.3 Release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8323f736..402b14b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "SquadJS", - "version": "1.3.2", + "version": "1.3.3", "repository": "https://github.com/Thomas-Smyth/SquadJS.git", "author": "Thomas Smyth ", "license": "BSL-1.0",