Class AbstractShipsDataSetCommand
java.lang.Object
org.ships.commands.argument.ship.data.AbstractShipsDataSetCommand
- All Implemented Interfaces:
org.core.command.argument.ArgumentCommand
- Direct Known Subclasses:
ShipsDataSetMaxSpeedCommand,ShipsDataSetSpecialBlockPercentCommand
public abstract class AbstractShipsDataSetCommand
extends Object
implements org.core.command.argument.ArgumentCommand
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedAbstractShipsDataSetCommand(ShipIdArgument<? extends Vessel> argument) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.core.command.argument.ArgumentCommand
hasPermission
-
Constructor Details
-
AbstractShipsDataSetCommand
protected AbstractShipsDataSetCommand() -
AbstractShipsDataSetCommand
-
-
Method Details
-
getExtraArguments
-
apply
protected abstract boolean apply(org.core.command.argument.context.CommandContext context, Vessel vessel, String[] arguments) throws org.core.exceptions.NotEnoughArguments - Throws:
org.core.exceptions.NotEnoughArguments
-
getArguments
- Specified by:
getArgumentsin interfaceorg.core.command.argument.ArgumentCommand
-
getDescription
- Specified by:
getDescriptionin interfaceorg.core.command.argument.ArgumentCommand
-
getPermissionNode
- Specified by:
getPermissionNodein interfaceorg.core.command.argument.ArgumentCommand
-
run
public boolean run(org.core.command.argument.context.CommandContext commandContext, String... args) throws org.core.exceptions.NotEnoughArguments - Specified by:
runin interfaceorg.core.command.argument.ArgumentCommand- Throws:
org.core.exceptions.NotEnoughArguments
-