mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-28 01:02:59 +08:00
Add BP login trigger to daily reset.
This commit is contained in:
parent
df85e0ac3c
commit
55ee6274f1
@ -1387,6 +1387,10 @@ public class Player {
|
|||||||
// Reset daily BP missions.
|
// Reset daily BP missions.
|
||||||
this.getBattlePassManager().resetDailyMissions();
|
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.
|
// Reset weekly BP missions.
|
||||||
if (currentDate.getDayOfWeek() == DayOfWeek.MONDAY) {
|
if (currentDate.getDayOfWeek() == DayOfWeek.MONDAY) {
|
||||||
this.getBattlePassManager().resetWeeklyMissions();
|
this.getBattlePassManager().resetWeeklyMissions();
|
||||||
|
Loading…
Reference in New Issue
Block a user