Package com.plotsquared.core.command
Class Backup
java.lang.Object
com.plotsquared.core.command.Command
com.plotsquared.core.command.Backup
-
Nested Class Summary
Nested classes/interfaces inherited from class com.plotsquared.core.command.Command
Command.CommandException, Command.CommandResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecute
(PlotPlayer<?> player, String[] args, RunnableVal3<Command, Runnable, Runnable> confirm, RunnableVal2<Command, Command.CommandResult> whenDone) void
list
(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command, Runnable, Runnable> confirm, RunnableVal2<Command, Command.CommandResult> whenDone) void
load
(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command, Runnable, Runnable> confirm, RunnableVal2<Command, Command.CommandResult> whenDone) void
save
(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
-
Backup
-
-
Method Details
-
execute
public CompletableFuture<Boolean> execute(PlotPlayer<?> player, String[] args, RunnableVal3<Command, Runnable, throws Command.CommandExceptionRunnable> confirm, RunnableVal2<Command, Command.CommandResult> whenDone) - Overrides:
execute
in 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
-
save
public void save(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) -
load
public void load(Command command, PlotPlayer<?> player, String[] args, RunnableVal3<Command, Runnable, Runnable> confirm, RunnableVal2<Command, Command.CommandResult> whenDone)
-