Package net.guizhanss.guizhanlib.updater
Class GuizhanBuildsUpdater
java.lang.Object
net.guizhanss.guizhanlib.updater.AbstractGuizhanBuildsUpdater
net.guizhanss.guizhanlib.updater.GuizhanBuildsUpdater
The Guizhan Builds Updater is responsible to auto-update the plugin from
Guizhan Builds (builds.guizhanss.com).
- Author:
- ybw0014
-
Constructor Summary
ConstructorsConstructorDescriptionThis constructor sets up the updater.GuizhanBuildsUpdater(Plugin plugin, File file, String user, String repo, String branch, boolean checkOnly) Deprecated.GuizhanBuildsUpdater(Plugin plugin, File file, String user, String repo, String branch, boolean checkOnly, String lang) Deprecated.The language option is no longer used, since it is now configured under global config file (/plugins/GuizhanBuildsUpdater/config.yml).GuizhanBuildsUpdater(Plugin plugin, File file, String user, String repo, String branch, UpdaterConfig updaterConfig) This constructor sets up the updater. -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to specify the builds page's URL.Set the language of updater.getR2URL()Override this method to specify the R2 bucket URL.Methods inherited from class net.guizhanss.guizhanlib.updater.AbstractGuizhanBuildsUpdater
getBuildsInfo, getLocalizedString, getRepoKey, getReposFileURL, getTargetUrl, log, log, log, log, start
-
Constructor Details
-
GuizhanBuildsUpdater
@ParametersAreNonnullByDefault public GuizhanBuildsUpdater(Plugin plugin, File file, String user, String repo, String branch) This constructor sets up the updater. -
GuizhanBuildsUpdater
@ParametersAreNonnullByDefault public GuizhanBuildsUpdater(Plugin plugin, File file, String user, String repo, String branch, UpdaterConfig updaterConfig) This constructor sets up the updater.- Parameters:
plugin- ThePlugininstancefile- TheFileof pluginuser- GitHub userrepo- GitHub repositorybranch- GitHub branchupdaterConfig- TheUpdaterConfig.
-
GuizhanBuildsUpdater
@Deprecated @ParametersAreNonnullByDefault public GuizhanBuildsUpdater(Plugin plugin, File file, String user, String repo, String branch, boolean checkOnly) Deprecated.in favor ofUpdaterConfig.This constructor sets up the updater. -
GuizhanBuildsUpdater
@Deprecated @ParametersAreNonnullByDefault public GuizhanBuildsUpdater(Plugin plugin, File file, String user, String repo, String branch, boolean checkOnly, String lang) Deprecated.The language option is no longer used, since it is now configured under global config file (/plugins/GuizhanBuildsUpdater/config.yml).This constructor sets up the updater.
-
-
Method Details
-
getBuildsURL
Description copied from class:AbstractGuizhanBuildsUpdaterOverride this method to specify the builds page's URL.No trailing slash is needed.
Example:
https://builds.guizhanss.net- Specified by:
getBuildsURLin classAbstractGuizhanBuildsUpdater- Returns:
- the URL of builds page
-
getR2URL
Description copied from class:AbstractGuizhanBuildsUpdaterOverride this method to specify the R2 bucket URL.No trailing slash is needed.
Example:
https://builds-r2.gzassets.net- Specified by:
getR2URLin classAbstractGuizhanBuildsUpdater- Returns:
- The R2 bucket URL
-
getLanguage
Set the language of updater.- Specified by:
getLanguagein classAbstractGuizhanBuildsUpdater- Returns:
- the language of updater
-
UpdaterConfig.