Skip to content

Commit

Permalink
Merge pull request #49 from Thomas-Smyth/beta
Browse files Browse the repository at this point in the history
SquadJS v1.3.3 Release
  • Loading branch information
Thomas-Smyth authored Sep 2, 2020
2 parents fd7a2fd + 6c4da74 commit 8b5e76a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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 <https://github.com/Thomas-Smyth>",
"license": "BSL-1.0",
Expand Down
4 changes: 2 additions & 2 deletions plugins/auto-tk-warn/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
};
3 changes: 1 addition & 2 deletions plugins/discord-debug/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)}\`\`\``);
});
}
}
Expand Down

0 comments on commit 8b5e76a

Please sign in to comment.