Skip to content

Commit

Permalink
%money% placeholder for the scoreboard will be rounded to 2 decimals.
Browse files Browse the repository at this point in the history
  • Loading branch information
PdeBot committed Sep 12, 2020
1 parent aa83296 commit b9d318a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ public String translatePlaceholders(String s, UhcPlayer uhcPlayer, Player bukkit
}

if (returnString.contains("%money%")){
returnString = returnString.replace("%money%", String.valueOf(VaultManager.getPlayerMoney(bukkitPlayer)));
returnString = returnString.replace("%money%", String.format("%.2f", VaultManager.getPlayerMoney(bukkitPlayer)));
}

// Parse custom placeholders
Expand Down

0 comments on commit b9d318a

Please sign in to comment.