Package com.marcusslover.plus.lib.file
Class FileUtils
java.lang.Object
com.marcusslover.plus.lib.file.FileUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.configuration.file.FileConfigurationReturns the Config located at the "path" with extension "ext"
Note: If the file does not exist it will try to be saved from the corresponding location in the plugins resourcesstatic org.bukkit.configuration.file.FileConfigurationReturns the Config located at the "path" with extension "ext"
Note: If the file does not exist it will try to be saved from the corresponding location in the plugins resourcesstatic FileReturns the File located at the "path" with extension "ext".static FileReturns the File located at the "path" with extension "ext".static File
-
Constructor Details
-
FileUtils
public FileUtils()
-
-
Method Details
-
getConfig
public static org.bukkit.configuration.file.FileConfiguration getConfig(String path, String ext, @NotNull @NotNull org.bukkit.plugin.java.JavaPlugin instance) Returns the Config located at the "path" with extension "ext"
Note: If the file does not exist it will try to be saved from the corresponding location in the plugins resources- Parameters:
path- Path to file, using "." as a separator for folders (ex: "data.players")ext- File extension (ex: "yml")- Returns:
- org.bukkit.configuration.file.FileConfiguration
-
getConfig
Returns the Config located at the "path" with extension "ext"
Note: If the file does not exist it will try to be saved from the corresponding location in the plugins resources- Parameters:
path- Path to file, using "." as a separator for folders (ex: "data.players")ext- File extension (ex: "yml")- Returns:
- org.bukkit.configuration.file.FileConfiguration
-
getFile
Returns the File located at the "path" with extension "ext".
Note: If the file does not exist it will try to be saved from the corresponding location in the plugins resources- Parameters:
path- Path to file, using "." as a separator for folders (ex: "data.players")ext- File extension (ex: "yml")- Returns:
- java.io.File
-
getFile
public static File getFile(String path, String ext, @NotNull @NotNull org.bukkit.plugin.java.JavaPlugin instance) Returns the File located at the "path" with extension "ext".
Note: If the file does not exist it will try to be saved from the corresponding location in the plugins resources- Parameters:
path- Path to file, using "." as a separator for folders (ex: "data.players")ext- File extension (ex: "yml")- Returns:
- java.io.File
-
getFolder
-