Class BrigadierCommandExecutor<S>

java.lang.Object
me.lucko.luckperms.common.command.CommandManager
me.lucko.luckperms.common.command.BrigadierCommandExecutor<S>
All Implemented Interfaces:
com.mojang.brigadier.Command<S>, com.mojang.brigadier.suggestion.SuggestionProvider<S>

public abstract class BrigadierCommandExecutor<S> extends CommandManager implements com.mojang.brigadier.Command<S>, com.mojang.brigadier.suggestion.SuggestionProvider<S>
  • Field Details

    • COMMAND_ALIASES

      protected static final String[] COMMAND_ALIASES
  • Constructor Details

    • BrigadierCommandExecutor

      protected BrigadierCommandExecutor(LuckPermsPlugin plugin)
  • Method Details

    • getSender

      public abstract Sender getSender(S source)
    • resolveSelectors

      public abstract List<String> resolveSelectors(S source, List<String> args)
    • run

      public int run(com.mojang.brigadier.context.CommandContext<S> context) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      run in interface com.mojang.brigadier.Command<S>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • getSuggestions

      public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(com.mojang.brigadier.context.CommandContext<S> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Specified by:
      getSuggestions in interface com.mojang.brigadier.suggestion.SuggestionProvider<S>
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException