mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +01:00
New placeholder for int type exp output %jobsr_user_jexp_int_[name]%
This commit is contained in:
parent
80aad6ea49
commit
458775eb6f
@ -416,6 +416,7 @@ public class Placeholder {
|
||||
|
||||
DecimalFormat dFormat = new DecimalFormat("00.0");
|
||||
DecimalFormat fFormat = new DecimalFormat("##.###");
|
||||
NumberFormat format = NumberFormat.getInstance(Locale.ENGLISH);
|
||||
|
||||
public String getValue(UUID uuid, JobsPlaceHolders placeHolder, String value) {
|
||||
if (placeHolder == null)
|
||||
@ -424,8 +425,6 @@ public class Placeholder {
|
||||
JobsPlayer user = uuid == null ? null : Jobs.getPlayerManager().getJobsPlayer(uuid);
|
||||
// Placeholders by JobsPlayer object
|
||||
if (user != null) {
|
||||
NumberFormat format = NumberFormat.getInstance(Locale.ENGLISH);
|
||||
|
||||
switch (placeHolder) {
|
||||
case user_dailyquests_pending:
|
||||
Integer pendingQuests = (int) user.getQuestProgressions().stream().filter(q -> !q.isCompleted()).count();
|
||||
|
Loading…
Reference in New Issue
Block a user