Class LanguageResourceInstaller
java.lang.Object
com.winterhavenmc.library.messagebuilder.resources.language.LanguageResourceInstaller
- All Implemented Interfaces:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.winterhavenmc.library.messagebuilder.resources.ResourceInstaller
ResourceInstaller.InstallerStatus
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageResourceInstaller
(org.bukkit.plugin.Plugin plugin) Class constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
Install resources listed in auto_install.txt to 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 interfaceResourceInstaller
-