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

public class SelfSelector extends Selector<org.bukkit.entity.Player>
Selector that selects the command sender if they are a player
  • Constructor Details

    • SelfSelector

      public SelfSelector()
      Constructor for SelfSelector
  • 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
    • getAllowedSenders

      @NotNull public @NotNull Set<Class<? extends org.bukkit.command.CommandSender>> getAllowedSenders()
      Description copied from class: Selector
      Gets the allowed senders for the selector
      Overrides:
      getAllowedSenders in class Selector<org.bukkit.entity.Player>
      Returns:
      the allowed senders for the selector, or null if all senders are allowed
    • expandImplementation

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