mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-03 23:08:07 +01:00
Formating limit output with bigger numbers
This commit is contained in:
parent
7ba5a2bd86
commit
2e1d9afc9f
@ -1,5 +1,7 @@
|
|||||||
package com.gamingmesh.jobs.commands.list;
|
package com.gamingmesh.jobs.commands.list;
|
||||||
|
|
||||||
|
import java.text.DecimalFormat;
|
||||||
|
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
@ -11,7 +13,6 @@ import com.gamingmesh.jobs.economy.PaymentData;
|
|||||||
import com.gamingmesh.jobs.i18n.Language;
|
import com.gamingmesh.jobs.i18n.Language;
|
||||||
|
|
||||||
import net.Zrips.CMILib.Locale.LC;
|
import net.Zrips.CMILib.Locale.LC;
|
||||||
import net.Zrips.CMILib.Logs.CMIDebug;
|
|
||||||
import net.Zrips.CMILib.Messages.CMIMessages;
|
import net.Zrips.CMILib.Messages.CMIMessages;
|
||||||
import net.Zrips.CMILib.Time.CMITimeManager;
|
import net.Zrips.CMILib.Time.CMITimeManager;
|
||||||
|
|
||||||
@ -64,7 +65,7 @@ public class limit implements Cmd {
|
|||||||
|
|
||||||
Language.sendMessage(sender, "command.limit.output." + typeName + "time", "%time%", CMITimeManager.to24hourShort(limit.getLeftTime(type)));
|
Language.sendMessage(sender, "command.limit.output." + typeName + "time", "%time%", CMITimeManager.to24hourShort(limit.getLeftTime(type)));
|
||||||
Language.sendMessage(sender, "command.limit.output." + typeName + "Limit",
|
Language.sendMessage(sender, "command.limit.output." + typeName + "Limit",
|
||||||
"%current%", (int) (limit.getAmount(type) * 100) / 100D,
|
"%current%", new DecimalFormat("##.##").format(limit.getAmount(type)),
|
||||||
"%total%", JPlayer.getLimit(type));
|
"%total%", JPlayer.getLimit(type));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user