mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Tweaked Auto-Updater
This commit is contained in:
parent
dcee66839f
commit
5a591e4f7e
@ -166,14 +166,18 @@ public final class SlimefunPlugin extends JavaPlugin {
|
|||||||
// Setting up the Auto-Updater
|
// Setting up the Auto-Updater
|
||||||
Updater updater;
|
Updater updater;
|
||||||
|
|
||||||
if (!getDescription().getVersion().startsWith("DEV - ")) {
|
if (getDescription().getVersion().startsWith("DEV - ")) {
|
||||||
// We are using an official build, use the BukkitDev Updater
|
|
||||||
updater = new BukkitUpdater(this, getFile(), 53485);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// If we are using a development build, we want to switch to our custom
|
// If we are using a development build, we want to switch to our custom
|
||||||
updater = new GitHubBuildsUpdater(this, getFile(), "TheBusyBiscuit/Slimefun4/master");
|
updater = new GitHubBuildsUpdater(this, getFile(), "TheBusyBiscuit/Slimefun4/master");
|
||||||
}
|
}
|
||||||
|
else if (getDescription().getVersion().startsWith("RC - ")) {
|
||||||
|
// If we are using a development build, we want to switch to our custom
|
||||||
|
updater = new GitHubBuildsUpdater(this, getFile(), "TheBusyBiscuit/Slimefun4/stable");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// We are using an official build, use the BukkitDev Updater
|
||||||
|
updater = new BukkitUpdater(this, getFile(), 53485);
|
||||||
|
}
|
||||||
|
|
||||||
if (config.getBoolean("options.auto-update")) updater.start();
|
if (config.getBoolean("options.auto-update")) updater.start();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user