Class WhitelistUtils
java.lang.Object
org.geysermc.floodgate.spigot.util.WhitelistUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddPlayer(UUID uuid, String username, SpigotVersionSpecificMethods versionSpecificMethods) Whitelist the given Bedrock player.static booleanremovePlayer(UUID uuid, String username, SpigotVersionSpecificMethods versionSpecificMethods) Removes the given Bedrock player from the whitelist.
-
Constructor Details
-
WhitelistUtils
public WhitelistUtils()
-
-
Method Details
-
addPlayer
public static boolean addPlayer(UUID uuid, String username, SpigotVersionSpecificMethods versionSpecificMethods) Whitelist the given Bedrock player.- Parameters:
uuid- the UUID of the Bedrock player to be removedusername- the username of the Bedrock player to be removedversionSpecificMethods- a reference to the SpigotVersionSpecificMethods used in SpigotCommandUtil- Returns:
- true if the player has been removed from the whitelist, false if the player wasn't
-
removePlayer
public static boolean removePlayer(UUID uuid, String username, SpigotVersionSpecificMethods versionSpecificMethods) Removes the given Bedrock player from the whitelist.- Parameters:
uuid- the UUID of the Bedrock player to be removedusername- the username of the Bedrock player to be removedversionSpecificMethods- a reference to the SpigotVersionSpecificMethods used in SpigotCommandUtil- Returns:
- true if the player has been removed from the whitelist, false if the player wasn't whitelisted
-