1
0
mirror of https://github.com/Zrips/Jobs.git synced 2025-04-08 13:16:49 +02:00

Do not show the exp result when less than 0

Closes 
This commit is contained in:
montlikadani 2020-04-12 19:26:16 +02:00
parent 423248105b
commit c4d0d0101a

View File

@ -74,12 +74,9 @@ public class BossBarManager {
NumberFormat formatter = new DecimalFormat("#0.00");
String gain = "";
if (expGain != 0) {
if (expGain > 0) {
expGain = (int) (expGain * 100) / 100D;
if (expGain > 0)
gain = "+" + expGain;
else
gain = "" + expGain;
gain = expGain > 0 ? "+" + expGain : "" + expGain;
gain = Jobs.getLanguage().getMessage("command.stats.bossBarGain", "%gain%", gain);
}