Interface CommandContextFactory<C>

    • Method Detail

      • create

        @Deprecated
        @NonNull CommandContext<Ccreate​(boolean suggestions,
                                          @NonNull C sender,
                                          @NonNull CaptionRegistry<C> captionRegistry)
        Deprecated.
        Provide a command manager instead of a caption registry
        Create a new command context
        Parameters:
        suggestions - Whether or not the sender is requesting suggestions
        sender - Command sender
        captionRegistry - Caption registry
        Returns:
        Command context
      • create

        @NonNull CommandContext<Ccreate​(boolean suggestions,
                                          @NonNull C sender,
                                          @NonNull CommandManager<C> commandManager)
        Create a new command context
        Parameters:
        suggestions - Whether or not the sender is requesting suggestions
        sender - Command sender
        commandManager - Command manager
        Returns:
        Command context
        Since:
        1.3.0