1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +01:00

New placeholder %jobsr_user_jmexp_$1%

This commit is contained in:
Zrips 2022-03-07 15:11:10 +02:00
parent ffade2e7b8
commit a811f79b1d

View File

@ -74,6 +74,7 @@ public class Placeholder {
user_canjoin_$1("jname/number"),
user_jlevel_$1("jname/number"),
user_jexp_$1("jname/number"),
user_jmexp_$1("jname/number"),
user_jexp_rounded_$1("jname/number"),
user_jmaxexp_$1("jname/number"),
user_jexpunf_$1("jname/number"),
@ -507,6 +508,8 @@ public class Placeholder {
return j == null ? "0" : j.getLevelFormatted();
case user_jexp_$1:
return j == null ? "0" : format.format(j.getExperience());
case user_jmexp_$1:
return j == null ? "0" : format.format(j.getMaxExperience() - j.getExperience());
case user_jexp_rounded_$1:
return j == null ? "0" : new DecimalFormat("##.###").format(j.getExperience());
case user_jmaxexp_$1: