Class CommandConvertEpicBackpacks

java.lang.Object
valorless.havenbags.commands.CommandConvertEpicBackpacks

public class CommandConvertEpicBackpacks extends Object
Utility command to convert data from the EpicBackpacks plugin into HavenBags format.

This class provides methods used by the conversion command to read EpicBackpacks player files, create corresponding HavenBags and register them in the plugin's player mapping.

Since:
1.27.0
  • Constructor Details

    • CommandConvertEpicBackpacks

      public CommandConvertEpicBackpacks()
  • Method Details

    • Run

      public static boolean Run(HBCommand command)
      Execute the EpicBackpacks -> HavenBags conversion routine.
      Parameters:
      command - the HBCommand representing the command invocation context
      Returns:
      true if the command execution completed (either successfully or after handling an error)
      Since:
      1.27.0
    • getFiles

      public static List<String> getFiles(File folder)
      Return a list of file names contained in the given folder that end with the .yml extension. The returned names will not include the .yml suffix.
      Parameters:
      folder - the directory to scan for .yml files
      Returns:
      a list of file names (without the .yml extension)
      Since:
      1.27.0