Skip to content

Commit

Permalink
Changed Round chances are now full numbers (no ,xx)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigerpanzer02 committed Jan 15, 2024
1 parent 21bf212 commit 1f8def8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) + "%";
}
});

Expand All @@ -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) + "%";
}
});

Expand Down

0 comments on commit 1f8def8

Please sign in to comment.