Class CommandFile
java.lang.Object
net.gcnt.additionsplus.files.commands.CommandFile
Class that handles the commands.yml file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a list of custom commands.org.bukkit.configuration.file.FileConfiguration
getFile()
Get the YAML FileConfiguration of the commands.yml file.void
Load all custom commands to memory.void
reload()
Reload the file from storage.void
save()
Save the cached changes to storage.void
setup()
Create the commands.yml file.
-
Constructor Details
-
CommandFile
public CommandFile()
-
-
Method Details
-
setup
public void setup()Create the commands.yml file. -
reload
public void reload()Reload the file from storage. -
save
public void save()Save the cached changes to storage. -
getFile
public org.bukkit.configuration.file.FileConfiguration getFile()Get the YAML FileConfiguration of the commands.yml file.- Returns:
- FileConfiguration of the commands.yml file.
-
loadCommands
public void loadCommands()Load all custom commands to memory. -
getCommands
Get a list of custom commands.- Returns:
- List of
CustomCommand
-