Class RandomPlayerSelector

java.lang.Object
xyz.srnyx.annoyingapi.command.selector.Selector<org.bukkit.entity.Player>
xyz.srnyx.annoyingapi.command.selector.selectors.RandomPlayerSelector

public class RandomPlayerSelector extends Selector<org.bukkit.entity.Player>
Selector that selects a random online player
  • Constructor Details

    • RandomPlayerSelector

      public RandomPlayerSelector()
      Constructor for RandomPlayerSelector
  • Method Details

    • getType

      @NotNull public @NotNull Class<org.bukkit.entity.Player> getType()
      Description copied from class: Selector
      Gets the type of object the selector expands to
      Specified by:
      getType in class Selector<org.bukkit.entity.Player>
      Returns:
      the type of object the selector expands to
    • expandImplementation

      @NotNull public @NotNull List<org.bukkit.entity.Player> expandImplementation(@NotNull @NotNull AnnoyingSender sender)
      Specified by:
      expandImplementation in class Selector<org.bukkit.entity.Player>