Implementing into your code
Once you have added the repo and the dependency into your pom.xml, now it's time to implement it into your code. On your main class, import the following static function:
And now on your onEnable, put the following code. The pluginId can be found in the EdLicense dashboard URL when a plugin is selected or inside your Plugin Settings.
So, if the license is invalid or it has expired or it has reached the maximum amounts of IP addresses it will return false on checkLicense method.
Last updated
Was this helpful?