Polymart Integration
When a customer purchases your plugin on Polymart, they receive a JAR with a license key already injected inside. ILicence verifies that key automatically. No manual work for you or the buyer.
How It Works
Polymart uses a placeholder system. When you upload your plugin JAR, you include the placeholder %%__LICENSE__%% in your code. When a customer downloads the plugin, Polymart replaces that placeholder with a real license key unique to that buyer.
%%__LICENSE__%% with a real keySetup (Step by Step)
Get your Polymart API Key
Go to polymart.org/account, scroll to the API Keys section. Click Make a new API Key. Give it a name like "ILicence". Make sure it has the list resources & buyers permission.
Add the API key to ILicence
In your ILicence dashboard, go to Settings. Paste your Polymart API Key in the Polymart API Key field. Save.
Create your plugin with Polymart URL
Create a plugin in ILicence (or edit an existing one). In the Marketplace Automation section, paste your Polymart resource URL (e.g., https://polymart.org/resource/my-plugin.1234).
Configure default license settings
Set the default license type (Permanent or Time Limited), max servers, and duration. These settings will be used for every license automatically created from Polymart purchases.
Use the placeholder in your plugin code
In your plugin's Java code, use the Polymart placeholder as the license key:
Upload your plugin to Polymart
Upload the compiled JAR to Polymart as a premium resource. That's it. Every buyer will automatically get a verified license.
Available Polymart Placeholders
Polymart replaces these placeholders in your JAR at download time:
| Placeholder | Description |
|---|---|
%%__LICENSE__%% | License key (Premium resources only) |
%%__USER__%% | Downloader's Polymart user ID |
%%__USERNAME__%% | Downloader's Polymart username |
%%__PRODUCT__%% | Your resource ID on Polymart |
%%__NONCE__%% | Unique identifier per download |
%%__TIMESTAMP__%% | Download timestamp (epoch) |
Recommended
Use %%__LICENSE__%% for license verification. The other placeholders are useful for watermarking or tracking but are not needed for basic license protection.