diff --git a/build.gradle.kts b/build.gradle.kts index 3a3cab8..01230fa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,7 +10,7 @@ allprojects { apply(plugin = "maven-publish") group = "dev.httpmarco" - version = "1.1.3-SNAPSHOT" + version = "1.1.4-SNAPSHOT" repositories { mavenCentral() diff --git a/osgan-utils/src/main/java/dev/httpmarco/osgan/utils/types/MessageUtils.java b/osgan-utils/src/main/java/dev/httpmarco/osgan/utils/types/MessageUtils.java index d1582cc..5d5e015 100644 --- a/osgan-utils/src/main/java/dev/httpmarco/osgan/utils/types/MessageUtils.java +++ b/osgan-utils/src/main/java/dev/httpmarco/osgan/utils/types/MessageUtils.java @@ -253,7 +253,11 @@ public static String getPercent(int amount, int percentOf, int maxDigits, boolea return format.format(percent) + "%"; } - public static String getFormattedInt(int value) { + public static String formatNumber(long value) { return NumberFormat.getInstance().format(value).replace(",", "."); } + + public static String formatNumber(double value) { + return NumberFormat.getInstance().format(value); + } }