Class Security

java.lang.Object
net.lewmc.foundry.Security

public class Security extends Object
Security Utility
  • Constructor Details

    • Security

      public Security(FoundryConfig config)
      Constructor for the Security Utility.
      Parameters:
      config - FoundryConfig - Foundry's configuration.
  • Method Details

    • hasSpecialCharacters

      public boolean hasSpecialCharacters(String string)
      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.