Package com.plotsquared.core.command
Class Template
java.lang.Object
com.plotsquared.core.command.Command
com.plotsquared.core.command.SubCommand
com.plotsquared.core.command.Template
-
Nested Class Summary
Nested classes/interfaces inherited from class com.plotsquared.core.command.Command
Command.CommandException, Command.CommandResult
-
Constructor Summary
ConstructorsConstructorDescriptionTemplate
(@NonNull PlotAreaManager plotAreaManager, @NonNull YamlConfiguration worldConfiguration, @NonNull File worldFile, @NonNull SetupUtils setupUtils, @NonNull WorldUtil worldUtil) -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
extractAllFiles
(String world, String template) static byte[]
boolean
onCommand
(PlotPlayer<?> player, String[] args) tab
(PlotPlayer<?> player, String[] args, boolean space) static void
Methods inherited from class com.plotsquared.core.command.SubCommand
execute
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
-
Template
@Inject public Template(@NonNull PlotAreaManager plotAreaManager, @NonNull YamlConfiguration worldConfiguration, @NonNull File worldFile, @NonNull SetupUtils setupUtils, @NonNull WorldUtil worldUtil)
-
-
Method Details
-
extractAllFiles
-
getBytes
-
zipAll
- Throws:
IOException
-
onCommand
- Specified by:
onCommand
in classSubCommand
-
tab
-