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.net).
- Author:
- ybw0014
-
Constructor Summary
ConstructorsConstructorDescriptionGuizhanBuildsUpdater(Plugin plugin, File file, String user, String repo, String branch, boolean checkOnly) This constructor sets up the updater.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). -
Method Summary
Modifier and TypeMethodDescriptionOverride this method to specify the builds page's URL.Set the language of updater.Methods inherited from class net.guizhanss.guizhanlib.updater.AbstractGuizhanBuildsUpdater
getBuildsInfo, getLocalizedString, getRepoKey, getReposFileURL, getTargetUrl, log, log, start
-
Constructor Details
-
GuizhanBuildsUpdater
@ParametersAreNonnullByDefault public GuizhanBuildsUpdater(Plugin plugin, File file, String user, String repo, String branch, boolean checkOnly) 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
-
getLanguage
Set the language of updater.- Specified by:
getLanguagein classAbstractGuizhanBuildsUpdater- Returns:
- the language of updater
-