forked from Upstream/mmocore
Slight modification to mmocore_quest_progress placeholder.
This commit is contained in:
parent
1df1cf30c7
commit
b0806c1a3f
@ -188,7 +188,7 @@ public class RPGPlaceholders extends PlaceholderExpansion {
|
||||
else if (identifier.equals("quest_progress")) {
|
||||
PlayerQuests data = playerData.getQuestData();
|
||||
return data.hasCurrent() ? MythicLib.plugin.getMMOConfig().decimal
|
||||
.format((int) (double) data.getCurrent().getObjectiveNumber() / data.getCurrent().getQuest().getObjectives().size() * 100) : "0";
|
||||
.format((int) (double) data.getCurrent().getObjectiveNumber() / data.getCurrent().getQuest().getObjectives().size() * 100L) : "0";
|
||||
}
|
||||
|
||||
else if (identifier.equals("quest_objective")) {
|
||||
|
Loading…
Reference in New Issue
Block a user