From 71d24aa7dc1a62ea3d981287de95653775908923 Mon Sep 17 00:00:00 2001 From: Zrips Date: Mon, 29 Nov 2021 16:45:01 +0200 Subject: [PATCH] Fix for level command showing more decimals than it should --- src/main/java/com/gamingmesh/jobs/commands/list/level.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gamingmesh/jobs/commands/list/level.java b/src/main/java/com/gamingmesh/jobs/commands/list/level.java index f2219f44..e9b2d4da 100644 --- a/src/main/java/com/gamingmesh/jobs/commands/list/level.java +++ b/src/main/java/com/gamingmesh/jobs/commands/list/level.java @@ -112,7 +112,8 @@ public class level implements Cmd { Player player = jPlayer.getPlayer(); if (player != null) - player.sendMessage(Jobs.getLanguage().getMessage("command.level.output.target", "%jobname%", job.getJobDisplayName(), "%level%", prog.getLevel(), "%exp%", prog.getExperience())); + player.sendMessage(Jobs.getLanguage().getMessage("command.level.output.target", "%jobname%", job.getDisplayName(), "%level%", prog.getLevel(), + "%exp%", String.format(Jobs.getGCManager().getDecimalPlacesExp(), prog.getExperience()))); sender.sendMessage(Jobs.getLanguage().getMessage("general.admin.success")); } else