Package me.wyne.wutils.commands
Class Command
java.lang.Object
me.wyne.wutils.commands.Command
THIS MODULE IS STILL INCOMPLETE, WORK IN PROGRESS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionargsToPattern(@NotNull String[] args) booleancontainsPattern(@NotNull String pattern, @NotNull Set<String> contains) booleanexecuteChildCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args) booleanexecuteCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args) booleanexecuteParentCommand(@NotNull org.bukkit.command.CommandSender sender) <R> RgetByPattern(@NotNull String pattern, @NotNull Map<String, R> data) booleanmatchPattern(@NotNull String pattern, @NotNull String match) voidsetChildCommand(@NotNull String childCommandPattern, @Nullable String... permissions) voidsetChildCommand(@NotNull String childCommandPattern, @Nullable BiFunction<org.bukkit.command.CommandSender, String[], Boolean> executor, @Nullable String... permissions) voidsetChildCommandPermissions(@NotNull String childCommandPattern, @Nullable String... permissions) voidsetChildCommandTabComplete(@NotNull String childCommandPattern, @NotNull Set<String> tabComplete) voidsetChildrenCommands(@NotNull HashMap<String, BiFunction<org.bukkit.command.CommandSender, String[], Boolean>> childrenCommands) voidsetChildrenCommandsPermissions(@NotNull HashMap<String, Set<String>> childrenCommandsPermissions) voidsetChildrenCommandsTabComplete(@NotNull HashMap<String, Set<String>> childrenCommandsTabComplete) voidsetParentCommand(@Nullable Function<org.bukkit.command.CommandSender, Boolean> parentCommand) voidsetParentCommand(@Nullable Function<org.bukkit.command.CommandSender, Boolean> parentCommand, @Nullable String... permissions) voidsetParentCommandPermissions(@Nullable String... permissions) tabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args)
-
Constructor Details
-
Command
public Command()
-
-
Method Details
-
setParentCommand
-
setParentCommand
-
setParentCommandPermissions
-
setChildCommand
public void setChildCommand(@NotNull @NotNull String childCommandPattern, @Nullable @Nullable BiFunction<org.bukkit.command.CommandSender, String[], Boolean> executor, @Nullable @Nullable String... permissions) -
setChildCommand
-
setChildCommandPermissions
-
setChildCommandTabComplete
-
setChildrenCommands
public void setChildrenCommands(@NotNull @NotNull HashMap<String, BiFunction<org.bukkit.command.CommandSender, String[], Boolean>> childrenCommands) -
setChildrenCommandsPermissions
-
setChildrenCommandsTabComplete
-
argsToPattern
-
matchPattern
-
containsPattern
-
getByPattern
-
tabComplete
-
executeCommand
public boolean executeCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String[] args) -
executeParentCommand
public boolean executeParentCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender) -
executeChildCommand
public boolean executeChildCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String[] args)
-