From 1f8def8fbc7aff589d1563f354de410879a698c0 Mon Sep 17 00:00:00 2001 From: Tigerpanzer_02 <37453987+Tigerpanzer02@users.noreply.github.com> Date: Mon, 15 Jan 2024 12:09:23 +0100 Subject: [PATCH] Changed Round chances are now full numbers (no ,xx) --- .github/CHANGELOG.md | 1 + .../projects/murdermystery/boot/PlaceholderInitializer.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index 021529ed..7656b265 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -1,5 +1,6 @@ ### 2.0.6 Release * Fixed Hungerlose option in config.yml +* Changed Round chances are now full numbers (no ,xx) ### 2.0.5 Release (13.01.2024) * Updated to minigamesbox 1.3.6 diff --git a/src/main/java/plugily/projects/murdermystery/boot/PlaceholderInitializer.java b/src/main/java/plugily/projects/murdermystery/boot/PlaceholderInitializer.java index 256272f1..61a751ea 100644 --- a/src/main/java/plugily/projects/murdermystery/boot/PlaceholderInitializer.java +++ b/src/main/java/plugily/projects/murdermystery/boot/PlaceholderInitializer.java @@ -118,7 +118,7 @@ public String getValue(Player player, PluginArena arena) { } User user = getUserManager().getUser(player); - return NumberUtils.round(((double) pluginArena.getContributorValue(Role.MURDERER, user) / (double) pluginArena.getTotalRoleChances(Role.MURDERER)) * 100.0, 2) + "%"; + return NumberUtils.round(((double) pluginArena.getContributorValue(Role.MURDERER, user) / (double) pluginArena.getTotalRoleChances(Role.MURDERER)) * 100.0, 0) + "%"; } }); @@ -131,7 +131,7 @@ public String getValue(Player player, PluginArena arena) { } User user = getUserManager().getUser(player); - return NumberUtils.round(((double) pluginArena.getContributorValue(Role.DETECTIVE, user) / (double) pluginArena.getTotalRoleChances(Role.DETECTIVE)) * 100.0, 2) + "%"; + return NumberUtils.round(((double) pluginArena.getContributorValue(Role.DETECTIVE, user) / (double) pluginArena.getTotalRoleChances(Role.DETECTIVE)) * 100.0, 0) + "%"; } });