Class AbstractShipsDataViewCommand

java.lang.Object
org.ships.commands.argument.ship.data.AbstractShipsDataViewCommand
All Implemented Interfaces:
org.core.command.argument.ArgumentCommand
Direct Known Subclasses:
ShipsDataViewMaxSpeedCommand

public abstract class AbstractShipsDataViewCommand extends Object implements org.core.command.argument.ArgumentCommand
  • Constructor Details

    • AbstractShipsDataViewCommand

      public AbstractShipsDataViewCommand()
  • Method Details

    • getExtraArguments

      protected abstract List<org.core.command.argument.CommandArgument<?>> getExtraArguments()
    • getValue

      protected abstract net.kyori.adventure.text.Component getValue(org.core.command.argument.context.CommandContext commandContext, Vessel vessel, String[] arguments)
    • getArguments

      public List<org.core.command.argument.CommandArgument<?>> getArguments()
      Specified by:
      getArguments in interface org.core.command.argument.ArgumentCommand
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.core.command.argument.ArgumentCommand
    • getPermissionNode

      public Optional<org.core.permission.Permission> getPermissionNode()
      Specified by:
      getPermissionNode in interface org.core.command.argument.ArgumentCommand
    • run

      public boolean run(org.core.command.argument.context.CommandContext commandContext, String... args) throws org.core.exceptions.NotEnoughArguments
      Specified by:
      run in interface org.core.command.argument.ArgumentCommand
      Throws:
      org.core.exceptions.NotEnoughArguments