Package net.lewmc.foundry
Class Security
java.lang.Object
net.lewmc.foundry.Security
Security Utility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasSpecialCharacters
(String string) Checks for special characters.void
startWatchdog keeps tabs on the startup processes, preventing your plugin from being started twice.void
Stops the watchdog service.
-
Constructor Details
-
Security
Constructor for the Security Utility.- Parameters:
config
- FoundryConfig - Foundry's configuration.
-
-
Method Details
-
hasSpecialCharacters
Checks for special characters.- Parameters:
string
- String - The string to check- Returns:
- boolean - If it has special characters
-
startWatchdog
public void startWatchdog()startWatchdog keeps tabs on the startup processes, preventing your plugin from being started twice. You should only call this once during your onEnable function run. -
stopWatchdog
public void stopWatchdog()Stops the watchdog service.
-