Class SpigotLicenseChecker
java.lang.Object
me.hsgamer.hscore.license.spigotmc.SpigotLicenseChecker
- All Implemented Interfaces:
LicenseChecker
The license checker for SpigotMC
-
Constructor Summary
ConstructorsConstructorDescriptionSpigotLicenseChecker(String resource) Create a new license checker with the default fetcherSpigotLicenseChecker(String resource, SpigotLicenseFetcher fetcher) Create a new license checker -
Method Summary
Modifier and TypeMethodDescriptionCheck the licensegetUrl()Get the URL of the platform this checker refers toMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.license.common.LicenseChecker
isAvailable
-
Constructor Details
-
SpigotLicenseChecker
Create a new license checker- Parameters:
resource- the resource idfetcher- the fetcher
-
SpigotLicenseChecker
Create a new license checker with the default fetcher- Parameters:
resource- the resource id
-
-
Method Details
-
checkLicense
Description copied from interface:LicenseCheckerCheck the license- Specified by:
checkLicensein interfaceLicenseChecker- Returns:
- the result
-
getUrl
Description copied from interface:LicenseCheckerGet the URL of the platform this checker refers to- Specified by:
getUrlin interfaceLicenseChecker- Returns:
- the URL
-