UlisesLib Class Methods & Return Signatures
Retrieves the Discord ID associated with the license. Returns null if validation fails.
String discordId = ulib.getDiscordId(productId, licenseKey);// Returns: "1216532655592439862"Retrieves the product name from the license. Returns null if validation fails.
String productName = ulib.getProductName(productId, licenseKey);// Returns: "MyBestPluginAnticheat"Retrieves the expiration date in ISO format. Returns null if validation fails.
String expiresAt = ulib.getExpirationDate(productId, licenseKey);// Returns: "2025-12-05T00:00:00.000Z"Retrieves the license status (active/revoked/expired). Returns null if validation fails.
String status = ulib.getLicenseStatus(productId, licenseKey);// Returns: "active"Retrieves the license subtype (Enterprise, Advanced, etc). Returns null if validation fails.
String subType = ulib.getSubType(productId, licenseKey);// Returns: "Enterprise"Returns the last error message. Useful for debugging connection issues.
Returns a stable machine-readable code for the last error (NETWORK_ERROR, TIMEOUT, SERVER_ERROR, MAX_RETRIES, RATE_LIMIT, RATE_LIMIT_LOCAL, LICENSE_ERROR, HWID_MISMATCH, and others). Use it to tell transient failures apart from definitive rejections without parsing messages.
if (ulib.isLicenseValid(productId, licenseKey)) { getLogger().info("License OK");} else if ("NETWORK_ERROR".equals(ulib.getLastErrorCode())) { getLogger().warning("No connection, will retry later");}Built by Ulises - Citymoon Dynamics