Class ResourceUtil

java.lang.Object
com.ranull.graves.util.ResourceUtil

public final class ResourceUtil extends Object
Utility class for copying resources from a plugin's JAR file to the file system.
  • 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.