Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
fix(DailyOnlineTime): #916 Mapに対象のUUIDキーがない場合にエラーが出る不具合修正 (#919)
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 authored Aug 11, 2022
1 parent 49cd318 commit c81e558
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ void recordDailyOnlineTime(Player player) {
}

UUID uuid = player.getUniqueId();
if (!this.onlineTime.containsKey(uuid)) {
return;
}

long time = System.currentTimeMillis();
long loginTime = this.onlineTime.get(uuid);
long diffSec = (time - loginTime) / 1000L;
Expand Down

0 comments on commit c81e558

Please sign in to comment.