Class CommandFile

java.lang.Object
net.gcnt.additionsplus.files.commands.CommandFile

public class CommandFile extends Object
Class that handles 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

      public List<CustomCommand> getCommands()
      Get a list of custom commands.
      Returns:
      List of CustomCommand