Class RulesManager

java.lang.Object
com.zetaplugins.essentialz.features.RulesManager

public class RulesManager extends Object
  • Constructor Details

    • RulesManager

      public RulesManager()
  • Method Details

    • init

      public void init()
    • getLines

      @Nullable public @Nullable List<String> getLines()
      Gets the lines of the rules file.
      Returns:
      A list of strings representing the lines of the rules file, or null if the file could not be read.
    • fileExists

      public boolean fileExists()
      Checks if the rules file exists.
      Returns:
      true if the rules file exists, false otherwise.
    • reload

      public boolean reload()
      Reloads the rules file from disk.
      Returns:
      true if the file was successfully reloaded, false otherwise.