From 51657e8b9a63e0895ee8eeacc95504d1135eb7ae Mon Sep 17 00:00:00 2001 From: Zrips Date: Mon, 7 Mar 2022 15:18:14 +0200 Subject: [PATCH] New placeholder %jobsr_user_jprogress_$1% --- .../java/com/gamingmesh/jobs/Placeholders/Placeholder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java b/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java index 9e36adfd..8ebac041 100644 --- a/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java +++ b/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java @@ -16,6 +16,7 @@ import org.bukkit.OfflinePlayer; import org.bukkit.entity.Player; import com.gamingmesh.jobs.Jobs; +import com.gamingmesh.jobs.commands.JobsCommands; import com.gamingmesh.jobs.container.CurrencyType; import com.gamingmesh.jobs.container.Job; import com.gamingmesh.jobs.container.JobProgression; @@ -75,6 +76,7 @@ public class Placeholder { user_jlevel_$1("jname/number"), user_jexp_$1("jname/number"), user_jmexp_$1("jname/number"), + user_jprogress_$1("jname/number"), user_jexp_rounded_$1("jname/number"), user_jmaxexp_$1("jname/number"), user_jexpunf_$1("jname/number"), @@ -510,6 +512,8 @@ public class Placeholder { return j == null ? "0" : format.format(j.getExperience()); case user_jmexp_$1: return j == null ? "0" : format.format(j.getMaxExperience() - j.getExperience()); + case user_jprogress_$1: + return j == null ? "" : Jobs.getCommandManager().jobProgressMessage(j.getMaxExperience(), j.getExperience()); case user_jexp_rounded_$1: return j == null ? "0" : new DecimalFormat("##.###").format(j.getExperience()); case user_jmaxexp_$1: