Class BlacklistSystem
java.lang.Object
io.github.icrazyblaze.twitchmod.util.files.BlacklistSystem
This class is responsible for reading from and writing to the blacklist file.
- See Also:
ChatPicker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToBlacklist(String toAdd)
Adds a chat command to the blacklist.static void
Clears the blacklist and its text file.static boolean
isBlacklisted(String command)
static void
Loads the blacklist file, or creates the file if it doesn't already exist.static void
removeFromBlacklist(String toRemove)
Removes a chat command from the blacklist.static void
Writes the contents of the blacklist to a text file.
-
Constructor Details
-
BlacklistSystem
public BlacklistSystem()
-
-
Method Details
-
getBlacklist
-
addToBlacklist
Adds a chat command to the blacklist.- Parameters:
toAdd
- The string to add to the blacklist and its text file.
-
removeFromBlacklist
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
-