-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
196 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
.../hscore-license-common/src/main/java/me/hsgamer/hscore/license/common/LicenseChecker.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
package me.hsgamer.hscore.license.common; | ||
|
||
/** | ||
* The license checker | ||
*/ | ||
public interface LicenseChecker { | ||
/** | ||
* Check the license | ||
* | ||
* @return the result | ||
*/ | ||
LicenseResult checkLicense(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
...e/hscore-license-common/src/main/java/me/hsgamer/hscore/license/common/LicenseResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...e/hscore-license-common/src/main/java/me/hsgamer/hscore/license/common/LicenseStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
package me.hsgamer.hscore.license.common; | ||
|
||
/** | ||
* The status of the license | ||
*/ | ||
public enum LicenseStatus { | ||
/** | ||
* The license is valid | ||
*/ | ||
VALID, | ||
/** | ||
* The license is invalid | ||
*/ | ||
INVALID, | ||
/** | ||
* The checker is offline | ||
*/ | ||
OFFLINE, | ||
/** | ||
* Unknown status | ||
*/ | ||
UNKNOWN | ||
} |
4 changes: 4 additions & 0 deletions
4
...se/hscore-license-common/src/main/java/me/hsgamer/hscore/license/common/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* Contains the base classes for the license checker | ||
*/ | ||
package me.hsgamer.hscore.license.common; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...score-license-polymart/src/main/java/me/hsgamer/hscore/license/polymart/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* Contains the implementation of {@link me.hsgamer.hscore.license.common.LicenseChecker} for Polymart | ||
*/ | ||
package me.hsgamer.hscore.license.polymart; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...score-license-spigotmc/src/main/java/me/hsgamer/hscore/license/spigotmc/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* Contains the implementation of {@link me.hsgamer.hscore.license.common.LicenseChecker} for SpigotMC | ||
*/ | ||
package me.hsgamer.hscore.license.spigotmc; |