Class Resources
java.lang.Object
studio.magemonkey.codex.mccore.config.Resources
A utility class for copying resource files to the server directory.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCopies a resource to the plugin's data folder using the same file name as the resource.static voidCopies a resource to the plugin's data folder using the same file name as the resource.static voidCopies a resource to the plugin's data folder using the provided destination to save to.static voidCopies a resource to the plugin's data folder using the provided destination to save to.
-
Constructor Details
-
Resources
public Resources()
-
-
Method Details
-
copy
Copies a resource to the plugin's data folder using the same file name as the resource. If the file already exists it will be overwritten.
- Parameters:
plugin- plugin referenceresource- resource to copy
-
copy
Copies a resource to the plugin's data folder using the same file name as the resource.
- Parameters:
plugin- plugin referenceresource- resource to copyoverwrite- whether or not to overwrite existing files
-
copy
Copies a resource to the plugin's data folder using the provided destination to save to. If the file already exists it will be overwritten.
- Parameters:
plugin- plugin referenceresource- resource to copydestination- destination to save the file to
-
copy
public static void copy(org.bukkit.plugin.Plugin plugin, String resource, String destination, boolean overwrite) Copies a resource to the plugin's data folder using the provided destination to save to.
- Parameters:
plugin- plugin referenceresource- resource to copydestination- destination to save the file tooverwrite- whether or not to overwrite existing files
-