Class Command

java.lang.Object
me.wyne.wutils.commands.Command

public class Command extends Object
THIS MODULE IS STILL INCOMPLETE, WORK IN PROGRESS
  • Constructor Details

    • Command

      public Command()
  • Method Details

    • setParentCommand

      public void setParentCommand(@Nullable @Nullable Function<org.bukkit.command.CommandSender,Boolean> parentCommand)
    • setParentCommand

      public void setParentCommand(@Nullable @Nullable Function<org.bukkit.command.CommandSender,Boolean> parentCommand, @Nullable @Nullable String... permissions)
    • setParentCommandPermissions

      public void setParentCommandPermissions(@Nullable @Nullable String... permissions)
    • setChildCommand

      public void setChildCommand(@NotNull @NotNull String childCommandPattern, @Nullable @Nullable BiFunction<org.bukkit.command.CommandSender,String[],Boolean> executor, @Nullable @Nullable String... permissions)
    • setChildCommand

      public void setChildCommand(@NotNull @NotNull String childCommandPattern, @Nullable @Nullable String... permissions)
    • setChildCommandPermissions

      public void setChildCommandPermissions(@NotNull @NotNull String childCommandPattern, @Nullable @Nullable String... permissions)
    • setChildCommandTabComplete

      public void setChildCommandTabComplete(@NotNull @NotNull String childCommandPattern, @NotNull @NotNull Set<String> tabComplete)
    • setChildrenCommands

      public void setChildrenCommands(@NotNull @NotNull HashMap<String,BiFunction<org.bukkit.command.CommandSender,String[],Boolean>> childrenCommands)
    • setChildrenCommandsPermissions

      public void setChildrenCommandsPermissions(@NotNull @NotNull HashMap<String,Set<String>> childrenCommandsPermissions)
    • setChildrenCommandsTabComplete

      public void setChildrenCommandsTabComplete(@NotNull @NotNull HashMap<String,Set<String>> childrenCommandsTabComplete)
    • argsToPattern

      public String argsToPattern(@NotNull @NotNull String[] args)
    • matchPattern

      public boolean matchPattern(@NotNull @NotNull String pattern, @NotNull @NotNull String match)
    • containsPattern

      public boolean containsPattern(@NotNull @NotNull String pattern, @NotNull @NotNull Set<String> contains)
    • getByPattern

      @Nullable public <R> R getByPattern(@NotNull @NotNull String pattern, @NotNull @NotNull Map<String,R> data)
    • tabComplete

      @NotNull public @NotNull List<String> tabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String[] args)
    • 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)