0

I'm using gamesparks and I need to disconnect player from pendingMatch, if the player is waiting for another player to connect very long time. Found this: match.removePlayersById(playerIdsToRemove) but I need to have matchID, to get match. but don't know how.

Please help me to remove player from match.

thank, you

Tatev
  • 79
  • 1
  • 6

1 Answers1

0

Use Spark.getMultiplayer().cancelMatchmaking(player, matchShortCode, matchGroup); matchShortCode you can get from SparkData and in case you don't have matchGroup use empty string.

Tatev
  • 79
  • 1
  • 6