forked from Upstream/mmocore
Debug build dont use
This commit is contained in:
parent
27135ce603
commit
d2aab930d1
@ -2,7 +2,7 @@ package net.Indyuce.mmocore.comp.placeholder;
|
|||||||
|
|
||||||
import io.lumine.mythic.lib.MythicLib;
|
import io.lumine.mythic.lib.MythicLib;
|
||||||
import io.lumine.mythic.lib.api.util.AltChar;
|
import io.lumine.mythic.lib.api.util.AltChar;
|
||||||
import io.lumine.utils.logging.Log;
|
import io.lumine.mythic.utils.logging.Log;
|
||||||
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
|
||||||
import net.Indyuce.mmocore.MMOCore;
|
import net.Indyuce.mmocore.MMOCore;
|
||||||
import net.Indyuce.mmocore.api.experience.PlayerProfessions;
|
import net.Indyuce.mmocore.api.experience.PlayerProfessions;
|
||||||
@ -190,6 +190,7 @@ public class RPGPlaceholders extends PlaceholderExpansion {
|
|||||||
PlayerQuests data = playerData.getQuestData();
|
PlayerQuests data = playerData.getQuestData();
|
||||||
Log.info("Data current objective number: " + data.getCurrent().getObjectiveNumber());
|
Log.info("Data current objective number: " + data.getCurrent().getObjectiveNumber());
|
||||||
Log.info("Total size of objective: "+ data.getCurrent().getQuest().getObjectives().size() * 100L);
|
Log.info("Total size of objective: "+ data.getCurrent().getQuest().getObjectives().size() * 100L);
|
||||||
|
|
||||||
return data.hasCurrent() ? MythicLib.plugin.getMMOConfig().decimal
|
return data.hasCurrent() ? MythicLib.plugin.getMMOConfig().decimal
|
||||||
.format((int) (double) data.getCurrent().getObjectiveNumber() / data.getCurrent().getQuest().getObjectives().size() * 100L) : "0";
|
.format((int) (double) data.getCurrent().getObjectiveNumber() / data.getCurrent().getQuest().getObjectives().size() * 100L) : "0";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user