Class SinglePlayerSelector


public final class SinglePlayerSelector extends MultiplePlayerSelector
  • Constructor Details

    • SinglePlayerSelector

      public SinglePlayerSelector(@NonNull String selector, @NonNull List<@NonNull org.bukkit.entity.Entity> entities)
      Construct a new selector
      Parameters:
      selector - The input string used to create this selector
      entities - The List of Bukkit entities to construct the EntitySelector from
  • Method Details

    • getPlayer

      public @Nullable org.bukkit.entity.Player getPlayer()
      Get the selected player or null if no player matched
      Returns:
      Gets the single player parsed by the selector