public class AnnoyingUpdate
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AnnoyingUpdate.Platform
Platforms that plugins are available on
|
static class |
AnnoyingUpdate.Version
Class for handling versions (only supports numbers [letters/words will be ignored]) to allow for easy comparison
|
| Modifier and Type | Field and Description |
|---|---|
@Nullable AnnoyingUpdate.Version |
latestVersion
The latest version of the plugin
|
| Constructor and Description |
|---|
AnnoyingUpdate(@NotNull AnnoyingPlugin plugin,
@NotNull java.lang.String name,
@NotNull java.lang.String currentVersion,
@NotNull java.util.Map<AnnoyingUpdate.Platform,java.lang.String> platforms)
Creates a new
AnnoyingUpdate object |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isUpdateAvailable()
Checks if an update is available
|
@Nullable public final @Nullable AnnoyingUpdate.Version latestVersion
public AnnoyingUpdate(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull java.lang.String name,
@NotNull
@NotNull java.lang.String currentVersion,
@NotNull
@NotNull java.util.Map<AnnoyingUpdate.Platform,java.lang.String> platforms)
AnnoyingUpdate objectplugin - the plugin instancename - namecurrentVersion - currentVersionplatforms - platforms