Interface RawCommand

    • Method Detail

      • execute

        @Deprecated
        default void execute​(CommandSource source,
                             String cmdLine)
        Deprecated.
        Executes the command for the specified source.
        Parameters:
        source - the source to execute the command for
        cmdLine - the arguments for the command
      • execute

        @Deprecated
        default void execute​(CommandSource source,
                             String @NonNull [] args)
        Deprecated.
        Description copied from interface: Command
        Executes the command for the specified source.
        Specified by:
        execute in interface Command
        Parameters:
        source - the source to execute the command for
        args - the arguments for the command
      • suggest

        @Deprecated
        default CompletableFuture<List<String>> suggest​(CommandSource source,
                                                        String currentArgs)
        Deprecated.
        Provides tab complete suggestions for the specified source.
        Parameters:
        source - the source to execute the command for
        currentArgs - the partial arguments for the command
        Returns:
        the tab complete suggestions
      • suggest

        @Deprecated
        default List<String> suggest​(CommandSource source,
                                     String @NonNull [] currentArgs)
        Deprecated.
        Description copied from interface: Command
        Provides tab complete suggestions for the specified source.
        Specified by:
        suggest in interface Command
        Parameters:
        source - the source to execute the command for
        currentArgs - the partial arguments for the command
        Returns:
        the tab complete suggestions
      • suggestAsync

        @Deprecated
        default CompletableFuture<List<String>> suggestAsync​(CommandSource source,
                                                             String @NonNull [] currentArgs)
        Deprecated.
        Description copied from interface: Command
        Provides tab complete suggestions for the specified source.
        Specified by:
        suggestAsync in interface Command
        Parameters:
        source - the source to execute the command for
        currentArgs - the partial arguments for the command
        Returns:
        the tab complete suggestions
      • hasPermission

        @Deprecated
        default boolean hasPermission​(CommandSource source,
                                      String cmdLine)
        Deprecated.
        Tests to check if the source has permission to perform the command with the provided arguments.
        Parameters:
        source - the source to execute the command for
        cmdLine - the arguments for the command
        Returns:
        true if the source has permission
      • hasPermission

        @Deprecated
        default boolean hasPermission​(CommandSource source,
                                      String @NonNull [] args)
        Deprecated.
        Description copied from interface: Command
        Tests to check if the source has permission to perform the command with the provided arguments.
        Specified by:
        hasPermission in interface Command
        Parameters:
        source - the source to execute the command for
        args - the arguments for the command
        Returns:
        true if the source has permission