mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-06 16:27:59 +01:00
Added placeholders to show user archived jobs level and exp
Closes #1022
This commit is contained in:
parent
aa13457348
commit
2e5ee5bd6f
@ -72,6 +72,8 @@ public class Placeholder {
|
|||||||
user_jmaxlvl_$1("jname/number"),
|
user_jmaxlvl_$1("jname/number"),
|
||||||
user_job_$1("jname/number"),
|
user_job_$1("jname/number"),
|
||||||
user_title_$1("jname/number"),
|
user_title_$1("jname/number"),
|
||||||
|
user_archived_jobs_level("jname/number"),
|
||||||
|
user_archived_jobs_exp("jname/number"),
|
||||||
|
|
||||||
maxjobs,
|
maxjobs,
|
||||||
|
|
||||||
@ -541,6 +543,10 @@ public class Placeholder {
|
|||||||
return "";
|
return "";
|
||||||
Title title = Jobs.gettitleManager().getTitle(j.getLevel(), j.getJob().getName());
|
Title title = Jobs.gettitleManager().getTitle(j.getLevel(), j.getJob().getName());
|
||||||
return title == null ? "" : title.getChatColor() + title.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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user