diff --git a/commands/alarm.js b/commands/alarm.js index f3fe66d..60f1ad7 100644 --- a/commands/alarm.js +++ b/commands/alarm.js @@ -363,7 +363,7 @@ module.exports = { let alarm = GuildDB.alarms.find(alarm => alarm.name == interaction.values[0]); let alarmIndex = GuildDB.alarms.indexOf(alarm); - let playerStat = GuildDB.playerstats.find(stat => stat.player == interaction.customId.split('-')[2]); + let playerStat = GuildDB.playerstats.find(stat => stat.gamertag == interaction.customId.split('-')[2]); if (playerStat == undefined) return interaction.update({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription('**Not Found** This player cannot be found, the gamertag may be incorrect or this player has not logged onto the server before.')], components: [] }); let add = interaction.customId.split('-')[1] == 'add'; diff --git a/commands/bounty.js b/commands/bounty.js index 6ed143f..4ed1502 100644 --- a/commands/bounty.js +++ b/commands/bounty.js @@ -47,7 +47,7 @@ module.exports = { if (args[0].name == 'set') { - let playerStat = GuildDB.playerstats.find(stat => stat.player == args[0].options[0].value); + let playerStat = GuildDB.playerstats.find(stat => stat.gamertag == args[0].options[0].value); if (playerStat == undefined) return interaction.send({ embeds: [new EmbedBuilder().setColor(client.config.Colors.Yellow).setDescription('**Not Found** This player cannot be found, the gamertag may be incorrect or this player has not logged onto the server before for at least ` 5 minutes `.')] }); let playerStatIndex = GuildDB.playerstats.indexOf(playerStat); diff --git a/package.json b/package.json index 953b03e..2ba30be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "6.3.11", + "version": "6.3.12", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {