-Added millisToTime(long) and ticksToTime(long) functions to return time formatted strings from long values.

IPlayerQuestData:
-Added last completed time functions for repeating quests.

IQuest:
-Added repeat functions for repeating quests.

ServerCloneController:
-Fixed cloned NPCs having identical UUIDs.
This commit is contained in:
Luis C.M committed 2022-12-20 09:21:38 -06:00
1 parent 705bf53aea
commit 3e537043dc
3 files changed
+14

No files matched your search

+4
View File
@@ -285,4 +285,8 @@ public abstract class AbstractNpcAPI {
* @return A new ISkinOverlay object initialized with the given texture.
*/
public abstract ISkinOverlay createSkinOverlay(String texture);
public abstract String millisToTime(long millis);
public abstract String ticksToTime(long ticks);
}
@@ -21,4 +21,8 @@ public interface IPlayerQuestData {
IQuest[] getActiveQuests();
IQuest[] getFinishedQuests();
long getLastCompletedTime(int id);
void setLastCompletedTime(int id,long time);
}
@@ -45,5 +45,11 @@ public interface IQuest {
boolean getIsRepeatable();
long getTimeUntilRepeat(IPlayer player);
void setRepeatType(int type);
int getRepeatType();
IQuestInterface getQuestInterface();
}