Package net.okocraft.box.api.util
Class TabCompleter
java.lang.Object
net.okocraft.box.api.util.TabCompleter
A utility class for tab completions.
-
Method Summary
Modifier and TypeMethodDescriptionGets the set of item names that match the filter.Gets the set of player names that match the filter.Gets the set of player names that match the filter.
-
Method Details
-
itemNames
Gets the set of item names that match the filter.- Parameters:
filter
- the item name filter- Returns:
- the list of item names that match the filter
-
players
Gets the set of player names that match the filter.- Parameters:
filter
- the player name filter- Returns:
- the list of player names that match the filter
-
players
@NotNull public static @NotNull List<String> players(@NotNull @NotNull String filter, @Nullable @Nullable String permissionNode) Gets the set of player names that match the filter.- Parameters:
filter
- the player name filterpermissionNode
- the permission node to check- Returns:
- the list of player names that match the filter
-