Skip to content

Commit c0ca570

Browse files
committed
Added total xp.
1 parent 57dd6f6 commit c0ca570

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/net/javadiscord/javabot/systems/help/commands/subcommands/HelpAccountSubcommand.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ private String formatExperience(Guild guild, HelpAccount account) {
8585
// Below, show the progress to the next level, or just the XP if they've reached the max level.
8686
if (goalXp > 0) {
8787
double percentToGoalXp = (currentXp / goalXp) * 100.0;
88-
sb.append(String.format("%.0f / %.0f XP (%.2f%%) until %s", currentXp, goalXp, percentToGoalXp, nextRoleAndXp.first().getAsMention()))
89-
.append('\n')
88+
sb.append(String.format("%.0f / %.0f XP (%.2f%%) until %s\n", currentXp, goalXp, percentToGoalXp, nextRoleAndXp.first().getAsMention()))
89+
.append(String.format("%.0f Total XP\n", account.getExperience()))
9090
.append(StringUtils.buildProgressBar(currentXp, goalXp, "\u2B1B", "\uD83D\uDFE5", 14));
9191
} else {
92-
sb.append(String.format("%.0f XP (MAX. LEVEL)", account.getExperience()));
92+
sb.append(String.format("%.0f Total XP (MAX. LEVEL)", account.getExperience()));
9393
}
9494
return sb.toString();
9595
}

0 commit comments

Comments
 (0)