Implement weekly resets for battlepass quests

This commit is contained in:
Melledy committed 2025-11-27 01:05:59 -08:00
1 parent 187d715866
commit 3f2f58b227
3 files changed
+19 -2

No files matched your search

+9
View File
@@ -262,4 +262,13 @@ public class Utils {
return false;
}
}
/**
* Get amount weeks since this epoch day. Each week starts on monday.
* @param epochDays
* @return
*/
public static int getWeeks(long epochDays) {
return (int) Math.floor((epochDays + 3) / 7D);
}
}