To start, add the Open Collaboration repository to your project:


Using Geyser

Add Geyser’s API codebase as a dependency:


To get a Geyser player, or check if a player is from Bedrock:

GeyserConnection connection = GeyserApi.api().connectionByUuid(uuid);

connection can be null if such a player does not exist on Geyser.

GeyserApi.api() may be null until after the Geyser plugin enables.

Using Floodgate

This page has a very simple primer for the Floodgate API. For a full breakdown, see here.

Add Floodgate’s API as a dependency:


Get the Floodgate API using:

FloodgateApi api = FloodgateApi.getInstance();