mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-22 06:46:39 +01:00
Updated floodgate API section as floodgate 2.0 has been released
parent
b0e84f6563
commit
8b1ac9c07b
1 changed files with 17 additions and 1 deletions
|
@ -39,4 +39,20 @@ GeyserSession session = GeyserConnector.getInstance().getPlayerByUuid(uuid);
|
||||||
|
|
||||||
## Using Floodgate
|
## 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).
|
Loading…
Reference in a new issue