Class GuizhanUpdater

java.lang.Object
net.guizhanss.guizhanlibplugin.updater.GuizhanUpdater

public final class GuizhanUpdater extends Object
The universal updater wrapper.
Author:
ybw0014
  • Constructor Details

    • GuizhanUpdater

      public GuizhanUpdater()
  • Method Details

    • start

      @ParametersAreNonnullByDefault public static void start(Plugin plugin, File file, String githubUser, String githubRepo, String githubBranch)
      Call the corresponding updater.
      Parameters:
      plugin - The Plugin instance
      file - The File of plugin
      githubUser - GitHub user
      githubRepo - GitHub repository
      githubBranch - GitHub branch
    • start

      @ParametersAreNonnullByDefault public static void start(Plugin plugin, File file, String githubUser, String githubRepo, String githubBranch, net.guizhanss.guizhanlib.updater.UpdaterConfig config)
      Call the corresponding updater.
      Parameters:
      plugin - The Plugin instance
      file - The File of plugin
      githubUser - GitHub user
      githubRepo - GitHub repository
      githubBranch - GitHub branch
      config - The UpdaterConfig
    • start

      @Deprecated @ParametersAreNonnullByDefault public static void start(Plugin plugin, File file, String githubUser, String githubRepo, String githubBranch, boolean checkOnly)
      Deprecated.
      In favor of new config system.
      Call the corresponding updater.
      Parameters:
      plugin - The Plugin instance
      file - The File of plugin
      githubUser - GitHub user
      githubRepo - GitHub repository
      githubBranch - GitHub branch
      checkOnly - Whether to check the version only, without downloading