Class License

java.lang.Object
ru.cwcode.cwutils.license.License

public class License extends Object
  • Field Details

    • hardcodedKey

      public static String hardcodedKey
  • Constructor Details

    • License

      public License()
  • Method Details

    • check

      public static boolean check(String key)
    • decrypt

      public static String decrypt(String message, String keyString) throws Exception
      Throws:
      Exception
    • ifNotValid

      public boolean ifNotValid(String key, org.bukkit.plugin.java.JavaPlugin plugin)
      Проверяет, валидный ли ключ. Если нет - отключает плагин.
      Returns:
      true, если ключ не валидный. Ожидаемое использование
      onEnable() {
      ...
      License.ifNotValid(key, this) return;
      ...
      }