Class SpigotVersionChecker
java.lang.Object
me.hsgamer.hscore.checker.spigotmc.SpigotVersionChecker
- All Implemented Interfaces:
VersionChecker
A simple version checker for SpigotMC
-
Constructor Summary
ConstructorDescriptionSpigotVersionChecker
(int resourceId) Create a version checkerSpigotVersionChecker
(int resourceId, UserAgent userAgent) Create a version checker -
Method Summary
Modifier and TypeMethodDescription@NotNull CompletableFuture<String>
Get the version of the resource
-
Constructor Details
-
SpigotVersionChecker
Create a version checker- Parameters:
resourceId
- the resource id from SpigotMCuserAgent
- the user agent
-
SpigotVersionChecker
public SpigotVersionChecker(int resourceId) Create a version checker- Parameters:
resourceId
- the resource id from SpigotMC
-
-
Method Details
-
getVersion
Get the version of the resource- Specified by:
getVersion
in interfaceVersionChecker
- Returns:
- the version
-