Package xyz.srnyx.annoyingapi
Class AnnoyingUpdate
- java.lang.Object
-
- xyz.srnyx.javautilities.parents.Stringable
-
- xyz.srnyx.annoyingapi.AnnoyingUpdate
-
-
Field Summary
Fields Modifier and Type Field Description @Nullable xyz.srnyx.javautilities.objects.SemanticVersionlatestVersionThe latest version of the plugin
-
Constructor Summary
Constructors Constructor Description AnnoyingUpdate(@NotNull AnnoyingPlugin annoyingPlugin, @NotNull org.bukkit.plugin.PluginBase plugin, PluginPlatform.Multi platforms)Creates a newAnnoyingUpdateobjectAnnoyingUpdate(@NotNull AnnoyingPlugin annoyingPlugin, @NotNull org.bukkit.plugin.PluginDescriptionFile pluginDescription, PluginPlatform.Multi platforms)Creates a newAnnoyingUpdateobjectAnnoyingUpdate(@NotNull AnnoyingPlugin plugin, PluginPlatform.Multi platforms)Creates a newAnnoyingUpdateobject
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckUpdate()Checks if an update is available and sendsa messageto the console if it is@NotNull AnnoyingPlugingetAnnoyingPlugin()TheAnnoyingPlugininstancebooleanisUpdateAvailable()Checks if an update is available
-
-
-
Constructor Detail
-
AnnoyingUpdate
public AnnoyingUpdate(@NotNull @NotNull AnnoyingPlugin annoyingPlugin, @NotNull @NotNull org.bukkit.plugin.PluginDescriptionFile pluginDescription, @NotNull PluginPlatform.Multi platforms)Creates a newAnnoyingUpdateobject- Parameters:
annoyingPlugin-annoyingPluginpluginDescription-pluginNameandcurrentVersionplatforms-platforms
-
AnnoyingUpdate
public AnnoyingUpdate(@NotNull @NotNull AnnoyingPlugin annoyingPlugin, @NotNull @NotNull org.bukkit.plugin.PluginBase plugin, @NotNull PluginPlatform.Multi platforms)Creates a newAnnoyingUpdateobject- Parameters:
annoyingPlugin-annoyingPluginplugin-pluginNameandcurrentVersionplatforms-platforms
-
AnnoyingUpdate
public AnnoyingUpdate(@NotNull @NotNull AnnoyingPlugin plugin, @NotNull PluginPlatform.Multi platforms)Creates a newAnnoyingUpdateobject- Parameters:
plugin-annoyingPlugin,pluginName, andcurrentVersionplatforms-platforms
-
-
Method Detail
-
getAnnoyingPlugin
@NotNull public @NotNull AnnoyingPlugin getAnnoyingPlugin()
Description copied from interface:AnnoyableTheAnnoyingPlugininstance- Specified by:
getAnnoyingPluginin interfaceAnnoyable- Returns:
- the plugin instance
-
checkUpdate
public boolean checkUpdate()
Checks if an update is available and sendsa messageto the console if it is- Returns:
trueif an update is available,falseotherwise
-
isUpdateAvailable
public boolean isUpdateAvailable()
Checks if an update is available- Returns:
trueif an update is available,falseotherwise
-
-