diff --git a/Using-Geyser-or-Floodgate-as-a-dependency.md b/Using-Geyser-or-Floodgate-as-a-dependency.md index aa11dc9..08a0e45 100644 --- a/Using-Geyser-or-Floodgate-as-a-dependency.md +++ b/Using-Geyser-or-Floodgate-as-a-dependency.md @@ -39,4 +39,20 @@ GeyserSession session = GeyserConnector.getInstance().getPlayerByUuid(uuid); ## Using Floodgate -See https://github.com/Camotoy/floodgate-skript/blob/master/pom.xml as a reference for now; this documentation will later be updated for Floodgate 2.0. \ No newline at end of file +See https://github.com/Camotoy/floodgate-skript/blob/master/pom.xml as a reference for now; this documentation will later be updated for Floodgate 2.0. +Add floodgate's API as a dependency: +```xml + + org.geysermc.floodgate + api + 2.0-SNAPSHOT + provided + +``` + +Get floodgate API using: +```java +FloodgateApi api = FloodgateApi.getInstance(); +api.isFloodgatePlayer(uuid); +``` +Floodgate API supports many more features, for complete documentation of floodgate api, see [this](https://github.com/GeyserMC/Floodgate/wiki/FloodgateApi). \ No newline at end of file