diff --git a/commands/lookup-discord.js b/commands/lookup-discord.js index 2c59c03..ca09fae 100644 --- a/commands/lookup-discord.js +++ b/commands/lookup-discord.js @@ -47,7 +47,7 @@ module.exports = { .setColor(client.config.Colors.Yellow) .setDescription(`**Record Found**\n> The gamertag \` ${playerStat.gamertag} \` is currently linked to <@${playerStat.discordID}>.`) - return interaction.send({ embeds: [found], components: [opt] }); + return interaction.send({ embeds: [found] }); } let notFound = new EmbedBuilder() diff --git a/commands/lookup-gamertag.js b/commands/lookup-gamertag.js index 60aca0f..32b82a9 100644 --- a/commands/lookup-gamertag.js +++ b/commands/lookup-gamertag.js @@ -46,7 +46,7 @@ module.exports = { .setColor(client.config.Colors.Yellow) .setDescription(`**Record Found**\n> The user <@${playerStat.discordID}> has linked the gamertag \` ${playerStat.gamertag} \`.`) - return interaction.send({ embeds: [found], components: [opt] }); + return interaction.send({ embeds: [found] }); }, }, } \ No newline at end of file diff --git a/package.json b/package.json index 90594ab..0fd82a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "6.12.1", + "version": "6.12.2", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": { diff --git a/util/AlarmsHandler.js b/util/AlarmsHandler.js index b49209a..8e80143 100644 --- a/util/AlarmsHandler.js +++ b/util/AlarmsHandler.js @@ -102,6 +102,9 @@ module.exports = { if (alarm.disabled || !alarm.rules.includes('ban_on_kill')) continue; // ignore if alarm is disabled or not ban on kill; if (alarm.ignoredPlayers.includes(data.killerID)) continue; + console.log(data); + console.log(alarm); + let diff = [Math.round(alarm.origin[0] - data.killerPOS[0]), Math.round(alarm.origin[1] - data.killerPOS[1])]; let distance = Math.sqrt(Math.pow(diff[0], 2) + Math.pow(diff[1], 2)).toFixed(2)