mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Decimal place fix
This commit is contained in:
parent
bd009f78f4
commit
81072b26ec
@ -55,8 +55,6 @@ public class BossBarManager {
|
||||
}
|
||||
}
|
||||
|
||||
NumberFormat formatter = new DecimalFormat("#0.00");
|
||||
|
||||
String gain = "";
|
||||
if (expGain != 0) {
|
||||
expGain = (int) (expGain * 100) / 100D;
|
||||
@ -67,7 +65,7 @@ public class BossBarManager {
|
||||
String message = Jobs.getLanguage().getMessage("command.stats.bossBarOutput",
|
||||
"%joblevel%", jobProg.getLevelFormatted(),
|
||||
"%jobname%", jobProg.getJob().getJobDisplayName(),
|
||||
"%jobxp%", formatter.format(Math.round(jobProg.getExperience() * 100.0) / 100.0),
|
||||
"%jobxp%", String.format(Jobs.getGCManager().getDecimalPlacesMoney(), jobProg.getExperience()),
|
||||
"%jobmaxxp%", jobProg.getMaxExperience(),
|
||||
"%gain%", gain);
|
||||
|
||||
|
@ -174,7 +174,7 @@ public class BufferedEconomy {
|
||||
|
||||
if (Jobs.getGCManager().ActionBarsMessageByDefault && serverTaxesAccount.isOnline()) {
|
||||
CMIActionBar.send(Bukkit.getPlayer(serverAccountName),
|
||||
Jobs.getLanguage().getMessage("message.taxes", "[amount]", (int) (totalAmount * 100) / 100.0));
|
||||
Jobs.getLanguage().getMessage("message.taxes", "[amount]", String.format(Jobs.getGCManager().getDecimalPlacesMoney(), totalAmount)));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -271,6 +271,10 @@ exampleJob:
|
||||
income: 0.5
|
||||
points: 0.5
|
||||
experience: 0.5
|
||||
glow_berries:
|
||||
income: 0.5
|
||||
points: 0.5
|
||||
experience: 0.5
|
||||
bonemeal:
|
||||
income: 1.5
|
||||
points: 1.5
|
||||
|
Loading…
Reference in New Issue
Block a user