Minor log changes

This commit is contained in:
KennyTV 2021-04-02 10:21:31 +02:00
parent df7a644479
commit d79bd00f58
No known key found for this signature in database
GPG Key ID: 6BE3B555EBC5982B
3 changed files with 6 additions and 6 deletions

View File

@ -132,7 +132,7 @@ public class ViaManagerImpl implements ViaManager {
platform.getLogger().warning("and if you're still unsure, feel free to join our Discord-Server for further assistance.");
} else if (protocolVersion.highestSupportedVersion() <= ProtocolVersion.v1_12_2.getVersion()) {
platform.getLogger().warning("This version of Minecraft is extremely outdated and support for it has reached its end of life. "
+ "You will still be able to run Via on this version, but we are unlikely to provide any further fixes or help with problems specific to legacy versions. "
+ "You will still be able to run Via on this Minecraft version, but we are unlikely to provide any further fixes or help with problems specific to legacy Minecraft versions. "
+ "Please consider updating to give your players a better experience and to avoid issues that have long been fixed.");
}
}

View File

@ -43,7 +43,7 @@ public abstract class CommonBoss<T> extends BossBar<T> {
public CommonBoss(String title, float health, BossColor color, BossStyle style) {
Preconditions.checkNotNull(title, "Title cannot be null");
Preconditions.checkArgument((health >= 0 && health <= 1), "Health must be between 0 and 1");
Preconditions.checkArgument((health >= 0 && health <= 1), "Health must be between 0 and 1. Input: " + health);
this.uuid = UUID.randomUUID();
this.title = title;
@ -65,7 +65,7 @@ public abstract class CommonBoss<T> extends BossBar<T> {
@Override
public BossBar setHealth(float health) {
Preconditions.checkArgument((health >= 0 && health <= 1), "Health must be between 0 and 1");
Preconditions.checkArgument((health >= 0 && health <= 1), "Health must be between 0 and 1. Input: " + health);
this.health = health;
sendPacket(CommonBoss.UpdateAction.UPDATE_HEALTH);
return this;

View File

@ -78,12 +78,12 @@ public class UpdateUtil {
}
Version newest = new Version(newestString);
if (current.compareTo(newest) < 0)
return "There is a newer version available: " + newest.toString() + ", you're on: " + current.toString();
return "There is a newer plugin version available: " + newest.toString() + ", you're on: " + current.toString();
else if (console && current.compareTo(newest) != 0) {
if (current.getTag().toLowerCase(Locale.ROOT).startsWith("dev") || current.getTag().toLowerCase(Locale.ROOT).startsWith("snapshot")) {
return "You are running a development version, please report any bugs to GitHub.";
return "You are running a development version of the plugin, please report any bugs to GitHub.";
} else {
return "You are running a newer version than is released!";
return "You are running a newer version of the plugin than is released!";
}
}
return null;