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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddToBlacklist(String toAdd)Adds a chat command to the blacklist.static voidClears the blacklist and its text file.static booleanisBlacklisted(String command)static voidLoads the blacklist file, or creates the file if it doesn't already exist.static voidremoveFromBlacklist(String toRemove)Removes a chat command from the blacklist.static voidWrites 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
-