From 2e5ee5bd6fe15fec746957484ca7afa5abdf7ac2 Mon Sep 17 00:00:00 2001 From: montlikadani Date: Tue, 15 Dec 2020 13:42:34 +0100 Subject: [PATCH] Added placeholders to show user archived jobs level and exp Closes #1022 --- .../java/com/gamingmesh/jobs/Placeholders/Placeholder.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java b/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java index 401a7113..4ef8cad6 100644 --- a/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java +++ b/src/main/java/com/gamingmesh/jobs/Placeholders/Placeholder.java @@ -72,6 +72,8 @@ public class Placeholder { user_jmaxlvl_$1("jname/number"), user_job_$1("jname/number"), user_title_$1("jname/number"), + user_archived_jobs_level("jname/number"), + user_archived_jobs_exp("jname/number"), maxjobs, @@ -541,6 +543,10 @@ public class Placeholder { return ""; Title title = Jobs.gettitleManager().getTitle(j.getLevel(), j.getJob().getName()); return title == null ? "" : title.getChatColor() + title.getName(); + case user_archived_jobs_level: + return j == null ? "" : Integer.toString(user.getArchivedJobProgression(j.getJob()).getLevel()); + case user_archived_jobs_exp: + return j == null ? "" : Double.toString(user.getArchivedJobProgression(j.getJob()).getExperience()); default: break; }