Skip to content

Commit

Permalink
Don't send death message if money lost was $0
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonHorkles committed Apr 10, 2024
1 parent 1392b30 commit 9ba483b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ else if (option.contains("%")) if (option.contains("-")) {
final String money = String.valueOf(format.format(result.amount));
final String balance = String.valueOf(format.format(result.balance));
if (!plugin.getConfig().getString("death-message").isBlank())
player.sendMessage(ChatColor.translateAlternateColorCodes(
if (!money.equals("0.00")) player.sendMessage(ChatColor.translateAlternateColorCodes(
'&',
plugin.getConfig().getString("death-message").replace("{MONEY}", money)
.replace("{BALANCE}", balance)));
Expand Down

0 comments on commit 9ba483b

Please sign in to comment.