Package me.lokka30.levelledmobs.misc
Class FileLoader
java.lang.Object
me.lokka30.levelledmobs.misc.FileLoader
Used to load various configuration files and migrate if necessary
- Since:
- 2.4.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull String
static @Nullable org.bukkit.configuration.file.YamlConfiguration
static void
saveResourceIfNotExists
(org.bukkit.plugin.Plugin instance, @NotNull File file)
-
Field Details
-
SETTINGS_FILE_VERSION
public static final int SETTINGS_FILE_VERSION- See Also:
-
MESSAGES_FILE_VERSION
public static final int MESSAGES_FILE_VERSION- See Also:
-
CUSTOMDROPS_FILE_VERSION
public static final int CUSTOMDROPS_FILE_VERSION- See Also:
-
RULES_FILE_VERSION
public static final int RULES_FILE_VERSION- See Also:
-
-
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
-
saveResourceIfNotExists
public static void saveResourceIfNotExists(org.bukkit.plugin.Plugin instance, @NotNull @NotNull File file)
-