Skip to content

Commit

Permalink
Fix: 100.000k won't be shown as 100.000L
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueMB committed Feb 5, 2024
1 parent 92f42c5 commit c269f5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
id 'java-library'
id 'maven-publish'

id 'net.minecrell.plugin-yml.bukkit' version '0.5.2'
id 'net.minecrell.plugin-yml.bukkit' version '0.6.0'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}

Expand Down
6 changes: 1 addition & 5 deletions src/main/java/me/truemb/rentit/utils/UtilitiesAPI.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,7 @@ public static String getHumanReadablePriceFromNumber(double number){
if(number >= 1000000){
return String.format("%.2fM", number/ 1000000.0);
}

if(number >= 100000){
return String.format("%.2fL", number/ 100000.0);
}


if(number >=1000){
return String.format("%.2fK", number/ 1000.0);
}
Expand Down

0 comments on commit c269f5c

Please sign in to comment.