diff --git a/_docs/geyser/using-geyser-or-floodgate-as-a-dependency.md b/_docs/geyser/using-geyser-or-floodgate-as-a-dependency.md index 2bbf036..4e75abe 100644 --- a/_docs/geyser/using-geyser-or-floodgate-as-a-dependency.md +++ b/_docs/geyser/using-geyser-or-floodgate-as-a-dependency.md @@ -9,27 +9,19 @@ To start, add the Open Collaboration repository to your project: ```xml opencollab-snapshot-repo - https://repo.opencollab.dev/maven-snapshots/ - - false - - - true - + https://repo.opencollab.dev/main/ ``` ## Using Geyser -*Please note: this information will be updated with a new API at a later point, but the old API structure will continue to work.* - -Add Geyser's common codebase as a dependency: +Add Geyser's API codebase as a dependency: ```xml - org.geysermc - core - 2.0.0-SNAPSHOT + org.geysermc.geyser + api + 2.1.0-SNAPSHOT provided ``` @@ -37,12 +29,12 @@ Add Geyser's common codebase as a dependency: To get a Geyser player, or check if a player is from Bedrock: ```java -GeyserSession session = GeyserConnector.getInstance().getPlayerByUuid(uuid); +GeyserConnection connection = GeyserApi.api().connectionByUuid(uuid); ``` -`session` can be null if such a player does not exist on Geyser. +`connection` can be null if such a player does not exist on Geyser. -`GeyserConnector.getInstance()` will be null until after the Geyser plugin enables. +`GeyserApi.api()` may be null until after the Geyser plugin enables. ## Using Floodgate