diff --git a/src/main/java/com/gamingmesh/jobs/Jobs.java b/src/main/java/com/gamingmesh/jobs/Jobs.java index b5b23fa5..9d536aea 100644 --- a/src/main/java/com/gamingmesh/jobs/Jobs.java +++ b/src/main/java/com/gamingmesh/jobs/Jobs.java @@ -28,6 +28,7 @@ import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Optional; +import java.util.Random; import java.util.UUID; import java.util.WeakHashMap; import java.util.logging.Logger; diff --git a/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java b/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java index 0a4952b8..0550a839 100644 --- a/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java +++ b/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java @@ -79,6 +79,7 @@ public class Placeholder { user_jmexp_$1("jname/number"), user_jprogress_$1("jname/number"), user_jexp_rounded_$1("jname/number"), + user_jexp_int_$1("jname/number"), user_jmaxexp_$1("jname/number"), user_jexpunf_$1("jname/number"), user_jmaxexpunf_$1("jname/number"), @@ -530,6 +531,8 @@ public class Placeholder { return j == null ? "" : Jobs.getCommandManager().jobProgressMessage(j.getMaxExperience(), j.getExperience()); case user_jexp_rounded_$1: return j == null ? "0" : fFormat.format(j.getExperience()); + case user_jexp_int_$1: + return j == null ? "0" : Integer.toString((int) j.getExperience()); case user_jmaxexp_$1: return j == null ? "0" : format.format(j.getMaxExperience()); case user_jexpunf_$1: