Disabled rest of the update system

This commit is contained in:
Rsl1122 2018-05-24 14:57:29 +03:00
parent b5cf501010
commit efb3c6ef86
3 changed files with 15 additions and 8 deletions

View File

@ -174,7 +174,11 @@
<groupId>org.slf4j</groupId>
</exclusion>
<exclusion>
<artifactId>asm-all</artifactId>
<artifactId>asm</artifactId>
<groupId>org.ow2.asm</groupId>
</exclusion>
<exclusion>
<artifactId>asm-commons</artifactId>
<groupId>org.ow2.asm</groupId>
</exclusion>
</exclusions>
@ -313,10 +317,6 @@
<artifactId>flow-noise</artifactId>
<groupId>com.flowpowered</groupId>
</exclusion>
<exclusion>
<artifactId>asm</artifactId>
<groupId>org.ow2.asm</groupId>
</exclusion>
<exclusion>
<artifactId>slf4j-api</artifactId>
<groupId>org.slf4j</groupId>
@ -325,6 +325,10 @@
<artifactId>jsr305</artifactId>
<groupId>com.google.code.findbugs</groupId>
</exclusion>
<exclusion>
<artifactId>asm</artifactId>
<groupId>org.ow2.asm</groupId>
</exclusion>
<exclusion>
<artifactId>gson</artifactId>
<groupId>com.google.code.gson</groupId>

View File

@ -112,7 +112,8 @@ public class UpdateCommand extends CommandNode {
sender.sendMessage("Checking that all servers are online..");
if (!checkNetworkStatus(sender)) {
sender.sendMessage("§cNot all servers were online or accessible, you can still update available servers using /plan -update -force");
if (args.length > 1 && "-force".equals(args[1])) {
// If -force, continue, otherwise return.
if (args.length < 2 || !"-force".equals(args[1])) {
return;
}
}

View File

@ -57,8 +57,10 @@ public class VersionCheckSystem implements SubSystem {
if (Version.isNewVersionAvailable(new Version(currentVersion), newestVersion.getVersion())) {
newVersionAvailable = newestVersion;
String notification =
"New Release (" + newestVersion.getVersion().toString() + ") is available and can be updated " +
"to using update subcommand." + (newestVersion.isRelease() ? "" : " This is a DEV release.");
"New Release (" + newestVersion.getVersion().toString() + ") is available " +
// "and can be updated to using update subcommand." +
newestVersion.getChangeLogUrl() +
(newestVersion.isRelease() ? "" : " This is a DEV release.");
Log.infoColor("§a----------------------------------------");
Log.infoColor("§a" + notification);
Log.infoColor("§a----------------------------------------");