Interface DefaultPlugin
- All Superinterfaces:
MOOCPlugin
- All Known Implementing Classes:
ApplyCliServerProperties, CopyCliPlayerData, DetectSaveFileFormat, DetectServerType, DetectWorldFolderStructure, PrefetchUsercache, UpdateDefaultServerFiles, UpdateProperties
A
MOOCPlugin that is always enabled regardless of conversion mode or server type.
Suitable for plugins that should run on every invocation, such as detection or property-update steps that are not tied to a specific server implementation.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanisEnabled(PluginContext ctx) Always returnstrue, so the plugin runs for everyPluginContext.Methods inherited from interface MOOCPlugin
logger, metadata, returnAllFilesInFolders, run, setTargetsModifier and TypeMethodDescriptiondefault org.slf4j.Loggerlogger()Returns a logger named after the runtime class of this plugin.metadata()Returns the metadata that identifies and describes this plugin.returnAllFilesInFolders(List<Path> worldDimensionRootFolders) Collects all regular files under the given world dimension root folders.voidrun(PluginContext ctx, List<Path> resolvedExistingTargets) Executes this plugin's conversion or inspection logic.setTargets(PluginContext ctx) Determines the candidate file or directory paths this plugin may operate on.
-
Method Details
-
isEnabled
Always returnstrue, so the plugin runs for everyPluginContext.- Specified by:
isEnabledin interfaceMOOCPlugin- Parameters:
ctx- the shared conversion context (unused)- Returns:
truealways
-