Skip to content
This repository was archived by the owner on Jul 10, 2022. It is now read-only.

Match Scheduling

Ian Castaño edited this page Nov 7, 2020 · 1 revision

The MatchScheduler will generate a new match in the system, which will be available to any MatchmakingRequest that meets the requirements to be matched with this match. You can also pass a null parameter so that a random match is generated and not one for a specific MatchmakingRequest.

matchScheduler.schedule(request);

Match Sanitizer

There are certain times a server needs to be sanitized, "sanitizing" defined by us as generating Matches for all pending MatchMakingRequests on a server until the maximum allocation is met. All the created matches will be adjudicated by the MatchAssigner.

Bukkit.getPluginManager().callEvent(new MatchControlSanitizeEvent(gameMode, subGameMode));

User joining a match

When the MatchmakingRequest is awarded by the MatchAssigner, the cloud will be asked to bring users to this specific server. At this point, the GameUserJoinEvent event will be called.

Clone this wiki locally