clear bounties after auto collect
This commit is contained in:
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dayz-armbands",
|
||||
"version": "7.2.1",
|
||||
"version": "7.2.2",
|
||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||
"main": "index.js",
|
||||
"nodemonConfig": {
|
||||
|
||||
@@ -133,6 +133,8 @@ module.exports = {
|
||||
receivedBounty = new EmbedBuilder()
|
||||
.setColor(client.config.Colors.Default)
|
||||
.setDescription(`<@${killerStat.discordID}> received **$${totalBounty.toFixed(2)}** in bounty rewards.`);
|
||||
|
||||
victimStat.bounties = []; // clear bounties after claimed
|
||||
}
|
||||
|
||||
if (killerStatIndex == -1) stats.push(killerStat);
|
||||
|
||||
Reference in new issue
Block a user