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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user