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
ConstructorsModifierConstructorDescriptionprotected
protected
AbstractShipsDataSetCommand
(ShipIdArgument<? extends Vessel> argument) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getArguments
in interfaceorg.core.command.argument.ArgumentCommand
-
getDescription
- Specified by:
getDescription
in interfaceorg.core.command.argument.ArgumentCommand
-
getPermissionNode
- Specified by:
getPermissionNode
in 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:
run
in interfaceorg.core.command.argument.ArgumentCommand
- Throws:
org.core.exceptions.NotEnoughArguments
-