From 8b1ac9c07b79a47b75d8113be3d15e23c27d066b Mon Sep 17 00:00:00 2001 From: RedSmarty <64510423+RedSmarty@users.noreply.github.com> Date: Fri, 10 Sep 2021 20:32:57 +0530 Subject: [PATCH] Updated floodgate API section as floodgate 2.0 has been released --- Using-Geyser-or-Floodgate-as-a-dependency.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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