Class SelfSelector
java.lang.Object
xyz.srnyx.annoyingapi.command.selector.Selector<org.bukkit.entity.Player>
xyz.srnyx.annoyingapi.command.selector.selectors.SelfSelector
Selector that selects the command sender if they are a player
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable List<org.bukkit.entity.Player> expandImplementation(@NotNull AnnoyingSender sender) Gets the allowed senders for the selector@NotNull Class<org.bukkit.entity.Player> getType()Gets the type of object the selector expands to
-
Constructor Details
-
SelfSelector
public SelfSelector()Constructor for SelfSelector
-
-
Method Details
-
getType
Description copied from class:SelectorGets the type of object the selector expands to -
getAllowedSenders
Description copied from class:SelectorGets the allowed senders for the selector- Overrides:
getAllowedSendersin classSelector<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:
expandImplementationin classSelector<org.bukkit.entity.Player>
-