Updated floodgate API section as floodgate 2.0 has been released

RedSmarty 2021-09-10 20:32:57 +05:30
parent b0e84f6563
commit 8b1ac9c07b

@ -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.
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
<dependency>
<groupId>org.geysermc.floodgate</groupId>
<artifactId>api</artifactId>
<version>2.0-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
```
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).