Class CommandFile
java.lang.Object
net.gcnt.additionsplus.files.commands.CommandFile
Class that handles the commands.yml file.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a list of custom commands.org.bukkit.configuration.file.FileConfigurationgetFile()Get the YAML FileConfiguration of the commands.yml file.voidLoad all custom commands to memory.voidreload()Reload the file from storage.voidsave()Save the cached changes to storage.voidsetup()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
-