1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-30 21:07:48 +01:00

2 new placeholders %jobsr_user_jobfull_[name/number]% and

%jobsr_user_jobshort_[name/number]%
This commit is contained in:
Zrips 2024-01-25 14:02:11 +02:00
parent 30ca00073f
commit 255a1c31a0

View File

@ -84,6 +84,8 @@ public class Placeholder {
user_jmaxexpunf_$1("jname/number"),
user_jmaxlvl_$1("jname/number"),
user_job_$1("jname/number"),
user_jobfull_$1("jname/number"),
user_jobshort_$1("jname/number"),
user_title_$1("jname/number"),
user_archived_jobs_level_$1("jname/number"),
user_archived_jobs_exp_$1("jname/number"),
@ -543,6 +545,10 @@ public class Placeholder {
return job == null ? "no" : convert(user.isInJob(job));
case user_job_$1:
return j == null ? "" : j.getJob().getName();
case user_jobfull_$1:
return j == null ? "" : j.getJob().getDisplayName();
case user_jobshort_$1:
return j == null ? "" : j.getJob().getShortName();
case user_title_$1:
if (j == null)
return "";