Package com.ranull.graves.util
Class ResourceUtil
java.lang.Object
com.ranull.graves.util.ResourceUtil
Utility class for copying resources from a plugin's JAR file to the file system.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
copyResources
(String inputPath, String outputPath, boolean overwrite, org.bukkit.plugin.java.JavaPlugin plugin) Copies resources from the plugin's JAR file to the specified output path.static void
copyResources
(String inputPath, String outputPath, org.bukkit.plugin.java.JavaPlugin plugin) Copies resources from the plugin's JAR file to the specified output path.
-
Method Details
-
copyResources
public static void copyResources(String inputPath, String outputPath, org.bukkit.plugin.java.JavaPlugin plugin) Copies resources from the plugin's JAR file to the specified output path.- Parameters:
inputPath
- The path inside the JAR file to copy from.outputPath
- The path on the file system to copy to.plugin
- The plugin instance.
-
copyResources
public static void copyResources(String inputPath, String outputPath, boolean overwrite, org.bukkit.plugin.java.JavaPlugin plugin) Copies resources from the plugin's JAR file to the specified output path.- Parameters:
inputPath
- The path inside the JAR file to copy from.outputPath
- The path on the file system to copy to.overwrite
- Whether to overwrite existing files.plugin
- The plugin instance.
-