Class BlacklistSystem

java.lang.Object
io.github.icrazyblaze.twitchmod.util.files.BlacklistSystem

public class BlacklistSystem extends Object
This class is responsible for reading from and writing to the blacklist file.
See Also:
ChatPicker
  • Constructor Details

    • BlacklistSystem

      public BlacklistSystem()
  • Method Details

    • getBlacklist

      public static List<String> getBlacklist()
    • addToBlacklist

      public static void addToBlacklist(String toAdd)
      Adds a chat command to the blacklist.
      Parameters:
      toAdd - The string to add to the blacklist and its text file.
    • removeFromBlacklist

      public static void removeFromBlacklist(String toRemove)
      Removes a chat command from the blacklist.
      Parameters:
      toRemove - The string to remove from the blacklist and its text file.
    • writeBlacklistToFile

      public static void writeBlacklistToFile()
      Writes the contents of the blacklist to a text file.
    • loadBlacklistFile

      public static void loadBlacklistFile()
      Loads the blacklist file, or creates the file if it doesn't already exist.
    • clearBlacklist

      public static void clearBlacklist()
      Clears the blacklist and its text file.
    • isBlacklisted

      public static boolean isBlacklisted(String command)