Class CommandFile
java.lang.Object
net.gcnt.additionsplus.files.commands.CommandFile
Class that handles the commands.yml file.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
CommandFilepublic CommandFile()
 
- 
- 
Method Details- 
setuppublic void setup()Create the commands.yml file.
- 
reloadpublic void reload()Reload the file from storage.
- 
savepublic void save()Save the cached changes to storage.
- 
getFilepublic org.bukkit.configuration.file.FileConfiguration getFile()Get the YAML FileConfiguration of the commands.yml file.- Returns:
- FileConfiguration of the commands.yml file.
 
- 
loadCommandspublic void loadCommands()Load all custom commands to memory.
- 
getCommandsGet a list of custom commands.- Returns:
- List of CustomCommand
 
 
-