Implement weekly resets for battlepass quests

This commit is contained in:
Melledy
2025-11-27 01:05:59 -08:00
parent 187d715866
commit 3f2f58b227
3 changed files with 19 additions and 2 deletions

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);
}
}