Class PluginUpdater
java.lang.Object
nl.mtvehicles.core.infrastructure.utils.PluginUpdater
The class responsible for plugin's auto-updater
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
checkNewVersion(org.bukkit.command.CommandSender sender)
Check whether there is a newer version of the plugin available and send a message if there isstatic boolean
Check whether the plugin is the latest versionstatic void
updatePlugin(org.bukkit.command.CommandSender sender)
Update the plugin
-
Constructor Details
-
PluginUpdater
public PluginUpdater()
-
-
Method Details
-
isLatestVersion
public static boolean isLatestVersion()Check whether the plugin is the latest version- Returns:
- True if the plugin is the latest version
-
checkNewVersion
public static void checkNewVersion(org.bukkit.command.CommandSender sender)Check whether there is a newer version of the plugin available and send a message if there is- Parameters:
sender
- Target to whom the message will be sent
-
updatePlugin
public static void updatePlugin(org.bukkit.command.CommandSender sender)Update the plugin- Parameters:
sender
- Target to whom information about the process will be sent
-