Restart Matchmaking
Last updated on
Restart Matchmaking If a player doesn't confirm their readiness for play, the matchmaking process will be repeated from the beginning. The team that contains a non-confirming player will be banned from matchmaking for 30 seconds. You will get a banned time value from the response when you successfully get matchmaking notification. This banned time is not configurable by default. To implement this feature, refer to the function below.
- Unreal Engine
- Unity
FRegistry::Lobby.Connect();
FRegistry::Lobby.SetRematchmakingNotifDelegate(AccelByte::Api::Lobby::RematchmakingNotif.CreateLambda([](const FAccelByteModelsRematchmakingNotice& Result)
{
// Do something if RematchmakingNotifDelegate has been successful
}));
AccelBytePlugin.GetLobby().Connect();
AccelBytePlugin.GetLobby().RematchmakingNotif += result =>
{
if (result.IsError)
{
// Do something if RematchmakingNotif has an error
Debug.Log($"Error RematchmakingNotif, Error Code: {result.Error.Code} Error Message: {result.Error.Message}");
}
else
{
// Do something if RematchmakingNotif has been successful
}
};