Class ConfigManager

java.lang.Object
com.booksaw.betterTeams.ConfigManager

public class ConfigManager extends Object
  • Field Details

    • config

      public final org.bukkit.configuration.file.YamlConfiguration config
  • Constructor Details

    • ConfigManager

      public ConfigManager(String resourceName, boolean updateChecks)
    • ConfigManager

      public ConfigManager(String resourceName, String filePath)
      Used to load / create a config file where the resource name is different from the destination path
      Parameters:
      resourceName - The name of the resource within the jar file
      filePath - The path to save the resource to
  • Method Details

    • save

      public void save()
    • save

      public void save(boolean log)
    • updateFromDefaultSave

      public void updateFromDefaultSave()
    • updateFromDefaultSave

      public void updateFromDefaultSave(boolean log)
    • saveResource

      public void saveResource(String resourcePath, String resultPath, boolean replace)
    • getConfig

      public org.bukkit.configuration.file.YamlConfiguration getConfig()
    • getResourceName

      public String getResourceName()
    • getFilePath

      public String getFilePath()