3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-29 01:20:15 +01:00

Minor log changes

Dieser Commit ist enthalten in:
KennyTV 2021-04-02 10:21:31 +02:00
Ursprung df7a644479
Commit d79bd00f58
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
3 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -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."); 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()) { } 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. " 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."); + "Please consider updating to give your players a better experience and to avoid issues that have long been fixed.");
} }
} }

Datei anzeigen

@ -43,7 +43,7 @@ public abstract class CommonBoss<T> extends BossBar<T> {
public CommonBoss(String title, float health, BossColor color, BossStyle style) { public CommonBoss(String title, float health, BossColor color, BossStyle style) {
Preconditions.checkNotNull(title, "Title cannot be null"); 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.uuid = UUID.randomUUID();
this.title = title; this.title = title;
@ -65,7 +65,7 @@ public abstract class CommonBoss<T> extends BossBar<T> {
@Override @Override
public BossBar setHealth(float health) { 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; this.health = health;
sendPacket(CommonBoss.UpdateAction.UPDATE_HEALTH); sendPacket(CommonBoss.UpdateAction.UPDATE_HEALTH);
return this; return this;

Datei anzeigen

@ -78,12 +78,12 @@ public class UpdateUtil {
} }
Version newest = new Version(newestString); Version newest = new Version(newestString);
if (current.compareTo(newest) < 0) 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) { else if (console && current.compareTo(newest) != 0) {
if (current.getTag().toLowerCase(Locale.ROOT).startsWith("dev") || current.getTag().toLowerCase(Locale.ROOT).startsWith("snapshot")) { 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 { } 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; return null;