Package com.plotsquared.core.command
Class Move
java.lang.Object
com.plotsquared.core.command.Command
com.plotsquared.core.command.SubCommand
com.plotsquared.core.command.Move
-
Nested Class Summary
Nested classes/interfaces inherited from class com.plotsquared.core.command.Command
Command.CommandException, Command.CommandResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone)
boolean
onCommand(PlotPlayer<?> player, String[] args)
Methods inherited from class com.plotsquared.core.command.Command
canExecute, check, checkArgs, checkTrue, equals, getAliases, getCommand, getCommand, getCommandById, getCommands, getCommands, getCommands, getCommandString, getDescription, getFullId, getId, getMatch, getParent, getPermission, getRequiredArguments, getRequiredType, getUsage, hasConfirmation, hashCode, init, matches, paginate, register, sendUsage, setRequiredArguments, tab, tabOf, toString
-
Constructor Details
-
Move
-
-
Method Details
-
execute
public CompletableFuture<Boolean> execute(PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone)- Overrides:
execute
in classSubCommand
- Parameters:
player
- Callerargs
- Argumentsconfirm
- Instance, Success, FailurewhenDone
- task to run when done- Returns:
- CompletableFuture true if the command executed fully, false in any other case
-
onCommand
- Specified by:
onCommand
in classSubCommand
-