Package net.guizhanss.guizhanlib.updater
Class GuizhanBuildsCNUpdater
java.lang.Object
net.guizhanss.guizhanlib.updater.AbstractGuizhanBuildsUpdater
net.guizhanss.guizhanlib.updater.GuizhanBuildsCNUpdater
The Guizhan Builds Updater is responsible to auto-update the plugin from
Mainland China mirror of Guizhan Builds (builds.guizhanss.cn).
- Author:
- ybw0014
-
Constructor Summary
ConstructorsConstructorDescriptionGuizhanBuildsCNUpdater(Plugin plugin, File file, String user, String repo, String branch, boolean checkOnly) This constructor sets up the updater.GuizhanBuildsCNUpdater(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
-
GuizhanBuildsCNUpdater
@ParametersAreNonnullByDefault public GuizhanBuildsCNUpdater(Plugin plugin, File file, String user, String repo, String branch, boolean checkOnly) This constructor sets up the updater. -
GuizhanBuildsCNUpdater
@Deprecated @ParametersAreNonnullByDefault public GuizhanBuildsCNUpdater(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
-