com.quartercode.quarterbukkit.util
Class QuarterBukkitUpdater
java.lang.Object
com.quartercode.quarterbukkit.api.Updater
com.quartercode.quarterbukkit.util.QuarterBukkitUpdater
public class QuarterBukkitUpdater
- extends Updater
This class is for checking the QuarterBukkit-version and updating the plugin.
Constructor Summary |
QuarterBukkitUpdater(org.bukkit.plugin.Plugin plugin)
Creates a new QuarterBukkit updater. |
Method Summary |
protected void |
doInstall(java.io.File downloadedFile,
org.bukkit.command.CommandSender causer)
Does some post-installation-activities, like extracting zips or relaoding the plugin. |
protected java.lang.String |
parseVersion(java.lang.String title)
Parses the version out of the BukkitDev-upload-title. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
QuarterBukkitUpdater
public QuarterBukkitUpdater(org.bukkit.plugin.Plugin plugin)
- Creates a new QuarterBukkit updater.
- Parameters:
plugin
- The QuarterBukkit
-Plugin
.
parseVersion
protected java.lang.String parseVersion(java.lang.String title)
- Description copied from class:
Updater
- Parses the version out of the BukkitDev-upload-title.
- Specified by:
parseVersion
in class Updater
- Parameters:
title
- The BukkitDev-upload-title.
- Returns:
- The parsed version.
doInstall
protected void doInstall(java.io.File downloadedFile,
org.bukkit.command.CommandSender causer)
throws java.io.IOException
- Description copied from class:
Updater
- Does some post-installation-activities, like extracting zips or relaoding the plugin.
- Specified by:
doInstall
in class Updater
- Parameters:
downloadedFile
- The downloaded file from BukkitDev.causer
- The executor of the action.
- Throws:
java.io.IOException
- If something goes wrong with the post-installation-activities.