Optimized notifyNearbyPlayers