Changes code to account for KnarLib changes
This commit is contained in:
@ -2,6 +2,7 @@ package net.knarcraft.dynmapcitizens.handler.trait.quests;
|
||||
|
||||
import me.blackvein.quests.quests.IQuest;
|
||||
import me.blackvein.quests.quests.Planner;
|
||||
import net.knarcraft.dynmapcitizens.DynmapCitizens;
|
||||
import net.knarcraft.knarlib.formatting.TimeFormatter;
|
||||
|
||||
import java.text.DateFormat;
|
||||
@ -37,7 +38,8 @@ public class QuestPlannerInfoGenerator {
|
||||
//Quest can be repeated after a cool-down
|
||||
if (planner.hasCooldown()) {
|
||||
plannerInfo.append("<li>Quest repeatable after: ");
|
||||
plannerInfo.append(TimeFormatter.getDurationString(planner.getCooldown() / 1000));
|
||||
plannerInfo.append(TimeFormatter.getDurationString(DynmapCitizens.getTranslator(),
|
||||
planner.getCooldown() / 1000));
|
||||
plannerInfo.append("</li>");
|
||||
} else {
|
||||
plannerInfo.append("<li>Quest cannot be repeated!</li>");
|
||||
@ -58,7 +60,8 @@ public class QuestPlannerInfoGenerator {
|
||||
//Quest availability repeats
|
||||
if (planner.hasRepeat()) {
|
||||
plannerInfo.append("<li>Quest will become available again after ");
|
||||
plannerInfo.append(TimeFormatter.getDurationString(planner.getRepeat() / 1000)).append("</li>");
|
||||
plannerInfo.append(TimeFormatter.getDurationString(DynmapCitizens.getTranslator(),
|
||||
planner.getRepeat() / 1000)).append("</li>");
|
||||
}
|
||||
|
||||
plannerInfo.append("</ul>");
|
||||
|
Reference in New Issue
Block a user