# Check whenever a player is in a match or not

**URL:** <https://forum.heroiclabs.com/t/check-whenever-a-player-is-in-a-match-or-not/5257>\
**Category:** Game Design\
**Tags:** sdk-unity\
**Created:** [May 13, 2024, 1:48pm UTC](https://forum.heroiclabs.com/t/check-whenever-a-player-is-in-a-match-or-not/5257 "2024-05-13T13:48:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![meet2play](https://avatars.discourse-cdn.com/v4/letter/m/71c47a/32.png) [@meet2play](https://forum.heroiclabs.com/u/meet2play)\
**Post date:** [May 13, 2024, 1:48pm UTC](https://forum.heroiclabs.com/t/check-whenever-a-player-is-in-a-match-or-not/5257/1 "2024-05-13T13:48:11Z")

</div>

Hi,  
i have a section in my game that gets all the online users, from there you can send them challenge requests and ask them to play with you, the thing is i want to only filter the users that are on the app and doing nothing, they’re not in any games, i will change the section name from “Online users” to “Available to play”

how can i achieve that ?? is there a way that i can check if a player is in an active match or they’re presence in a match??

Thanks.

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [May 15, 2024, 3:52pm UTC](https://forum.heroiclabs.com/t/check-whenever-a-player-is-in-a-match-or-not/5257/2 "2024-05-15T15:52:49Z")

</div>

Hello @meet2play,

You could use a custom [stream](https://heroiclabs.com/docs/nakama/server-framework/streams/) and use an RPC to place the player there when they’re not in a match, then do a stream listing on it to fetch a list of available players.
