mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-25 23:07:50 +00:00
Add BP login trigger to daily reset.
This commit is contained in:
parent
54c4f60abb
commit
17fb19ebc9
@ -1387,6 +1387,10 @@ public class Player {
|
||||
// Reset daily BP missions.
|
||||
this.getBattlePassManager().resetDailyMissions();
|
||||
|
||||
// Trigger login BP mission, so players who are online during the reset
|
||||
// don't have to relog to clear the mission.
|
||||
this.getBattlePassManager().triggerMission(WatcherTriggerType.TRIGGER_LOGIN);
|
||||
|
||||
// Reset weekly BP missions.
|
||||
if (currentDate.getDayOfWeek() == DayOfWeek.MONDAY) {
|
||||
this.getBattlePassManager().resetWeeklyMissions();
|
||||
|
Loading…
Reference in New Issue
Block a user