mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-19 19:25:48 +00:00
replace builds page with blob builds
This commit is contained in:
parent
1aeb0e8f65
commit
d87e26b47a
@ -5,6 +5,7 @@ import java.util.logging.Level;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
import io.github.bakedlibs.dough.updater.BlobBuildUpdater;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
import io.github.bakedlibs.dough.config.Config;
|
||||
@ -53,7 +54,7 @@ public class UpdaterService {
|
||||
*/
|
||||
public UpdaterService(@Nonnull Slimefun plugin, @Nonnull String version, @Nonnull File file) {
|
||||
this.plugin = plugin;
|
||||
GitHubBuildsUpdater autoUpdater = null;
|
||||
BlobBuildUpdater autoUpdater = null;
|
||||
|
||||
if (version.contains("UNOFFICIAL")) {
|
||||
// This Server is using a modified build that is not a public release.
|
||||
@ -61,7 +62,7 @@ public class UpdaterService {
|
||||
} else if (version.startsWith("DEV - ")) {
|
||||
// If we are using a development build, we want to switch to our custom
|
||||
try {
|
||||
autoUpdater = new GitHubBuildsUpdater(plugin, file, "TheBusyBiscuit/Slimefun4/master");
|
||||
autoUpdater = new BlobBuildUpdater(plugin, file, "Slimefun4", "Dev");
|
||||
} catch (Exception x) {
|
||||
plugin.getLogger().log(Level.SEVERE, "Failed to create AutoUpdater", x);
|
||||
}
|
||||
@ -70,7 +71,7 @@ public class UpdaterService {
|
||||
} else if (version.startsWith("RC - ")) {
|
||||
// If we are using a "stable" build, we want to switch to our custom
|
||||
try {
|
||||
autoUpdater = new GitHubBuildsUpdater(plugin, file, "TheBusyBiscuit/Slimefun4/stable", "RC - ");
|
||||
autoUpdater = new BlobBuildUpdater(plugin, file, "Slimefun4", "RC");
|
||||
} catch (Exception x) {
|
||||
plugin.getLogger().log(Level.SEVERE, "Failed to create AutoUpdater", x);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user