Skip to content

Commit

Permalink
Only do MC group sync for validated users
Browse files Browse the repository at this point in the history
  • Loading branch information
tadhgboyle committed Dec 24, 2021
1 parent e221826 commit 7d8647a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/Core/includes/endpoints/ServerInfoEndpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ private function updateGroups(User $user, array $player): array {
return [];
}

if (!$user->isValidated()) {
return [];
}

$log = GroupSyncManager::getInstance()->broadcastChange(
$user,
MinecraftGroupSyncInjector::class,
Expand Down

0 comments on commit 7d8647a

Please sign in to comment.