1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-19 14:59:20 +00:00

Added getPlayers and getPlayerCount to the API

This commit is contained in:
Tim203
2021-01-18 11:29:54 +01:00
parent 3eb607772d
commit 3b8382957c
3 changed files with 25 additions and 3 deletions

View File

@@ -25,6 +25,7 @@
package org.geysermc.floodgate.api;
import java.util.Collection;
import java.util.UUID;
import org.geysermc.cumulus.Form;
import org.geysermc.cumulus.util.FormBuilder;
@@ -39,6 +40,16 @@ public interface FloodgateApi {
return InstanceHolder.getApi();
}
/**
* Returns all the online Floodgate players.
*/
Collection<FloodgatePlayer> getPlayers();
/**
* Returns the number of Floodgate players who are currently online.
*/
int getPlayerCount();
/**
* Method to determine if the given <b>online</b> player is a bedrock player
*