Class FileLoader

java.lang.Object
me.lokka30.levelledmobs.misc.FileLoader

public final class FileLoader extends Object
Used to load various configuration files and migrate if necessary
Since:
2.4.0
  • Field Details

  • Method Details

    • loadFile

      @Nullable public static @Nullable org.bukkit.configuration.file.YamlConfiguration loadFile(@NotNull @NotNull org.bukkit.plugin.Plugin plugin, String cfgName, int compatibleVersion)
    • getFileLoadErrorMessage

      @NotNull public static @NotNull String getFileLoadErrorMessage()
    • saveResourceIfNotExists

      public static void saveResourceIfNotExists(org.bukkit.plugin.Plugin instance, @NotNull @NotNull File file)