| Modifier and Type | Field and Description |
|---|---|
@Nullable xyz.srnyx.javautilities.objects.SemanticVersion |
latestVersion
The latest version of the plugin
|
| Constructor and Description |
|---|
AnnoyingUpdate(@NotNull AnnoyingPlugin annoyingPlugin,
@NotNull org.bukkit.plugin.java.JavaPlugin plugin,
PluginPlatform.Multi platforms)
Creates a new
AnnoyingUpdate object |
AnnoyingUpdate(@NotNull AnnoyingPlugin plugin,
PluginPlatform.Multi platforms)
Creates a new
AnnoyingUpdate object |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkUpdate()
Checks if an update is available and sends
a message to the console if it is |
@NotNull AnnoyingPlugin |
getAnnoyingPlugin()
The
AnnoyingPlugin instance |
boolean |
isUpdateAvailable()
Checks if an update is available
|
@Nullable public final @Nullable xyz.srnyx.javautilities.objects.SemanticVersion latestVersion
public AnnoyingUpdate(@NotNull
@NotNull AnnoyingPlugin annoyingPlugin,
@NotNull
@NotNull org.bukkit.plugin.java.JavaPlugin plugin,
@NotNull
PluginPlatform.Multi platforms)
AnnoyingUpdate objectannoyingPlugin - annoyingPluginplugin - pluginplatforms - platformspublic AnnoyingUpdate(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
PluginPlatform.Multi platforms)
AnnoyingUpdate objectplugin - annoyingPlugin and pluginplatforms - platforms@NotNull public @NotNull AnnoyingPlugin getAnnoyingPlugin()
AnnoyableAnnoyingPlugin instancegetAnnoyingPlugin in interface Annoyablepublic boolean checkUpdate()
a message to the console if it istrue if an update is available, false otherwisepublic boolean isUpdateAvailable()
true if an update is available, false otherwise