Skip to content

Commit

Permalink
Avoid sending update notification to operators on join when check-for…
Browse files Browse the repository at this point in the history
…-updates=false
  • Loading branch information
Tofpu committed Aug 15, 2024
1 parent 36adcf0 commit 2972861
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ private void onPlayerJoin(final @NotNull PlayerJoinEvent event) {
playerService.loadIfAbsent(player, (bridgePlayer) -> playerService.internalRefresh(player, bridgePlayer));

if (player.isOp()) {
UpdateChecker.get()
.updateNotification(player);
if (UpdateChecker.isInitialized() && ConfigurationManager.INSTANCE.getGeneralCategory().shouldCheckForUpdates()) {
UpdateChecker.get().updateNotification(player);
}
}

teleportToLobby(player);
Expand Down

0 comments on commit 2972861

Please sign in to comment.