Interface Command

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean allArguments()
      Returns whether all remaining commands should be included as arguments.
      void execute​(@NotNull java.lang.String args)
      Executes the command with the given arguments.
      @NotNull java.lang.String getCommandName()
      Returns the name of the command.
    • Method Detail

      • getCommandName

        @NotNull
        @NotNull java.lang.String getCommandName()
        Returns the name of the command.
        Returns:
        the name
      • allArguments

        boolean allArguments()
        Returns whether all remaining commands should be included as arguments.
        Returns:
        whether all remaining commands should be included as arguments
      • execute

        void execute​(@NotNull
                     @NotNull java.lang.String args)
        Executes the command with the given arguments.
        Parameters:
        args - the command arguments