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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canExecute
(PlotPlayer<?> player, boolean message) execute
(PlotPlayer<?> player, String[] args, RunnableVal3<Command, Runnable, Runnable> confirm, RunnableVal2<Command, Command.CommandResult> whenDone) static MainCommand
static boolean
onCommand
(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:
canExecute
in classCommand
-