SuperMatchmaker is a cross-platform matchmaking plugin for Velocity, Waterfall and PaperSpigot>=1.8.8.
Glowstone and Sponge support coming soon.
Insert the following snippets into your POM.xml.
For the repository:
<repositories>
...
<repository>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/regulad/SuperMatchmaker</url>
</repository>
...
</repositories>
For the dependency:
<dependencies>
...
<dependency>
<groupId>quest.ender</groupId>
<artifactId>common</artifactId>
<version>{version}</version>
</dependency>
...
</dependencies>
Replace {version}
with the current version. You can see the current version below. Don't include the "v".
The name of the plugin on PaperSpigot and Waterfall is Matchmaker
for compatability reasons. On any and all other
platforms, it is simply SuperMatchmaker
MatchmakerAPI api=MatchmakerAPI.getInstance();
CompletableFuture<Collection<String>>games=api.getGames();
games.thenApply((gameCollection)->{
for(String game:gameCollection){
System.out.println(game);
}
});