1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-19 19:25:48 +00:00

[CI skip] Changed default version string

This commit is contained in:
TheBusyBiscuit 2019-11-10 13:01:07 +01:00
parent c8f9b5a07b
commit fc67fac34c
2 changed files with 11 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.mrCookieSlime</groupId>
<artifactId>Slimefun</artifactId>
<version>4.2</version>
<version>UNOFFICIAL</version>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>

View File

@ -168,7 +168,13 @@ public final class SlimefunPlugin extends JavaPlugin {
// Setting up the Auto-Updater
Updater updater;
if (getDescription().getVersion().equals("UNOFFICIAL")) {
// This Server is using a modified build that is not a public release.
getLogger().log(Level.WARNING, "It looks like you are using an unofficially modified build of Slimefun!");
getLogger().log(Level.WARNING, "Auto-Updates have been disabled, this build is not considered safe.");
getLogger().log(Level.WARNING, "Do not report bugs encountered in this Version of Slimefun.");
}
if (getDescription().getVersion().startsWith("DEV - ")) {
// If we are using a development build, we want to switch to our custom
updater = new GitHubBuildsUpdater(this, getFile(), "TheBusyBiscuit/Slimefun4/master");
@ -182,7 +188,9 @@ public final class SlimefunPlugin extends JavaPlugin {
updater = new BukkitUpdater(this, getFile(), 53485);
}
if (config.getBoolean("options.auto-update")) updater.start();
if (updater != null && config.getBoolean("options.auto-update")) {
updater.start();
}
// Creating all necessary Folders
String[] storage = {"blocks", "stored-blocks", "stored-inventories", "stored-chunks", "universal-inventories", "waypoints", "block-backups"};