Package com.plotsquared.core.command
Class FlagCommand
java.lang.Object
com.plotsquared.core.command.Command
com.plotsquared.core.command.FlagCommand
-
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 TypeMethodDescriptionvoidadd(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone)execute(PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone)voidinfo(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone)voidlist(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone)voidremove(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone)voidset(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone)tab(PlotPlayer<?> player, String[] args, boolean space)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, tabOf, toString
-
Constructor Details
-
FlagCommand
public FlagCommand()
-
-
Method Details
-
execute
public CompletableFuture<Boolean> execute(PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone) throws Command.CommandException- Overrides:
executein classCommand- 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
- Throws:
Command.CommandException
-
tab
-
set
public void set(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone) -
add
public void add(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone) -
remove
public void remove(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone) -
list
public void list(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone) -
info
public void info(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command,Runnable,Runnable> confirm, RunnableVal2<Command,Command.CommandResult> whenDone)
-