Package com.plotsquared.core.command
Class MainCommand
java.lang.Object
com.plotsquared.core.command.Command
com.plotsquared.core.command.MainCommand
PlotSquared command class.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.plotsquared.core.command.Command
Command.CommandException, Command.CommandResult -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancanExecute(PlotPlayer<?> player, boolean message) execute(PlotPlayer<?> player, String[] args, RunnableVal3<Command, Runnable, Runnable> confirm, RunnableVal2<Command, Command.CommandResult> whenDone) static MainCommandstatic booleanonCommand(PlotPlayer<?> player, String... args) Methods inherited from class com.plotsquared.core.command.Command
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
-
Field Details
-
help
-
toggle
-
-
Method Details
-
getInstance
-
onCommand
-
execute
public CompletableFuture<Boolean> execute(PlotPlayer<?> player, String[] args, RunnableVal3<Command, Runnable, Runnable> confirm, RunnableVal2<Command, Command.CommandResult> whenDone) -
canExecute
- Overrides:
canExecutein classCommand
-