--- layout: page title: Using Geyser or Floodgate as a dependency permalink: /geyser/using-geyser-or-floodgate-as-a-dependency/ --- To start, add the Open Collaboration repository to your project: ```xml opencollab-snapshot-repo https://repo.opencollab.dev/main/ ``` ## Using Geyser Add Geyser's API codebase as a dependency: ```xml org.geysermc.geyser api 2.1.0-SNAPSHOT provided ``` To get a Geyser player, or check if a player is from Bedrock: ```java 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](/floodgate/api/). Add Floodgate's API as a dependency: ```xml org.geysermc.floodgate api 2.0-SNAPSHOT provided ``` Get the Floodgate API using: ```java FloodgateApi api = FloodgateApi.getInstance(); api.isFloodgatePlayer(uuid); ```