Class GuizhanBuildsCNUpdater

java.lang.Object
net.guizhanss.guizhanlib.updater.AbstractGuizhanBuildsUpdater
net.guizhanss.guizhanlib.updater.GuizhanBuildsCNUpdater

public final class GuizhanBuildsCNUpdater extends AbstractGuizhanBuildsUpdater
The Guizhan Builds Updater is responsible to auto-update the plugin from Mainland China mirror of Guizhan Builds (builds.guizhanss.cn).
Author:
ybw0014
  • Constructor Details

    • GuizhanBuildsCNUpdater

      @ParametersAreNonnullByDefault public GuizhanBuildsCNUpdater(Plugin plugin, File file, String user, String repo, String branch)
      This constructor sets up the updater.
      Parameters:
      plugin - The Plugin instance
      file - The File of plugin
      user - GitHub user
      repo - GitHub repository
      branch - GitHub branch
    • GuizhanBuildsCNUpdater

      @ParametersAreNonnullByDefault public GuizhanBuildsCNUpdater(Plugin plugin, File file, String user, String repo, String branch, UpdaterConfig updaterConfig)
      This constructor sets up the updater.
      Parameters:
      plugin - The Plugin instance
      file - The File of plugin
      user - GitHub user
      repo - GitHub repository
      branch - GitHub branch
      updaterConfig - The UpdaterConfig.
    • GuizhanBuildsCNUpdater

      @Deprecated @ParametersAreNonnullByDefault public GuizhanBuildsCNUpdater(Plugin plugin, File file, String user, String repo, String branch, boolean checkOnly)
      Deprecated.
      in favor of UpdaterConfig.
      This constructor sets up the updater.
      Parameters:
      plugin - The Plugin instance
      file - The File of plugin
      user - GitHub user
      repo - GitHub repository
      branch - GitHub branch
      checkOnly - Whether to check the version only, without downloading
    • 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.
      Parameters:
      plugin - The Plugin instance
      file - The File of plugin
      user - GitHub user
      repo - GitHub repository
      branch - GitHub branch
      checkOnly - Whether to check the version only, without downloading
      lang - The language of updater
  • Method Details