diff --git a/commands/leaderboard.js b/commands/leaderboard.js index 457e141..2894ba6 100644 --- a/commands/leaderboard.js +++ b/commands/leaderboard.js @@ -100,7 +100,8 @@ module.exports = { category == 'money' ? `$${(leaderboard[i].user.guilds[GuildDB.serverID].balance).toLocaleString(undefined, {minimumFractionDigits: 2, maximumFractionDigits: 2})}` : category == 'time_played' ? `Total: ${client.secondsToDhms(leaderboard[i].totalSessionTime)}\nLast Session: ${leaderboard[i].lastSessionTime}` : 'N/A Error'; - if (category == 'money' || category == 'time_played') des += `**${i+1}.** <@${leaderboard[i].user.userID}> - **${stats}**\n` + if (category == 'money') des += `**${i+1}.** <@${leaderboard[i].user.userID}> - **${stats}**\n` + else if (category == 'time_played') des += `**${i+1}.** <@${leaderboard[i].discordID}> - **${stats}**\n` else leaderboardEmbed.addFields({ name: `**${i+1}. ${leaderboard[i].gamertag}**`, value: `**${stats}**`, inline: true }); } diff --git a/package.json b/package.json index d5579ce..c5ef3ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "6.13.2", + "version": "6.13.3", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {