Class WhitelistUtils

java.lang.Object
org.geysermc.floodgate.spigot.util.WhitelistUtils

public final class WhitelistUtils extends Object
  • 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 removed
      username - the username of the Bedrock player to be removed
      versionSpecificMethods - 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 removed
      username - the username of the Bedrock player to be removed
      versionSpecificMethods - 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