Class LanguageResourceInstaller

java.lang.Object
com.winterhavenmc.library.messagebuilder.resources.language.LanguageResourceInstaller
All Implemented Interfaces:
ResourceInstaller

public final class LanguageResourceInstaller extends Object implements ResourceInstaller
This class is responsible for installing localization resources from the language directory of the jar archive to the language subdirectory of the plugin data directory. Any files listed in an auto_install.txt file with a .yml suffix that are stored as a resource within a /language subdirectory in the plugin jar archive will be copied to the /language subdirectory of the plugin data directory.
  • Constructor Details

    • LanguageResourceInstaller

      public LanguageResourceInstaller(org.bukkit.plugin.Plugin plugin)
      Class constructor
      Parameters:
      plugin - reference to plugin main class
  • Method Details

    • autoInstall

      public void autoInstall()
      Install resources listed in auto_install.txt to the plugin data directory
      Specified by:
      autoInstall in interface ResourceInstaller