mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
New placeholder %jobsr_user_jprogress_$1%
This commit is contained in:
parent
a811f79b1d
commit
51657e8b9a
@ -16,6 +16,7 @@ import org.bukkit.OfflinePlayer;
|
|||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
|
||||||
import com.gamingmesh.jobs.Jobs;
|
import com.gamingmesh.jobs.Jobs;
|
||||||
|
import com.gamingmesh.jobs.commands.JobsCommands;
|
||||||
import com.gamingmesh.jobs.container.CurrencyType;
|
import com.gamingmesh.jobs.container.CurrencyType;
|
||||||
import com.gamingmesh.jobs.container.Job;
|
import com.gamingmesh.jobs.container.Job;
|
||||||
import com.gamingmesh.jobs.container.JobProgression;
|
import com.gamingmesh.jobs.container.JobProgression;
|
||||||
@ -75,6 +76,7 @@ public class Placeholder {
|
|||||||
user_jlevel_$1("jname/number"),
|
user_jlevel_$1("jname/number"),
|
||||||
user_jexp_$1("jname/number"),
|
user_jexp_$1("jname/number"),
|
||||||
user_jmexp_$1("jname/number"),
|
user_jmexp_$1("jname/number"),
|
||||||
|
user_jprogress_$1("jname/number"),
|
||||||
user_jexp_rounded_$1("jname/number"),
|
user_jexp_rounded_$1("jname/number"),
|
||||||
user_jmaxexp_$1("jname/number"),
|
user_jmaxexp_$1("jname/number"),
|
||||||
user_jexpunf_$1("jname/number"),
|
user_jexpunf_$1("jname/number"),
|
||||||
@ -510,6 +512,8 @@ public class Placeholder {
|
|||||||
return j == null ? "0" : format.format(j.getExperience());
|
return j == null ? "0" : format.format(j.getExperience());
|
||||||
case user_jmexp_$1:
|
case user_jmexp_$1:
|
||||||
return j == null ? "0" : format.format(j.getMaxExperience() - j.getExperience());
|
return j == null ? "0" : format.format(j.getMaxExperience() - j.getExperience());
|
||||||
|
case user_jprogress_$1:
|
||||||
|
return j == null ? "" : Jobs.getCommandManager().jobProgressMessage(j.getMaxExperience(), j.getExperience());
|
||||||
case user_jexp_rounded_$1:
|
case user_jexp_rounded_$1:
|
||||||
return j == null ? "0" : new DecimalFormat("##.###").format(j.getExperience());
|
return j == null ? "0" : new DecimalFormat("##.###").format(j.getExperience());
|
||||||
case user_jmaxexp_$1:
|
case user_jmaxexp_$1:
|
||||||
|
Loading…
Reference in New Issue
Block a user