3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-28 09:00:09 +01:00

Change the outdated server message

Dieser Commit ist enthalten in:
KennyTV 2020-12-15 11:26:08 +01:00
Ursprung 4355f8987f
Commit 4858d75439
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B
2 geänderte Dateien mit 7 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -88,6 +88,7 @@ public class ViaManager {
platform.getLogger().severe("ViaVersion failed to get the server protocol!"); platform.getLogger().severe("ViaVersion failed to get the server protocol!");
e.printStackTrace(); e.printStackTrace();
} }
// Check if there are any pipes to this version // Check if there are any pipes to this version
if (ProtocolRegistry.SERVER_PROTOCOL != -1) { if (ProtocolRegistry.SERVER_PROTOCOL != -1) {
platform.getLogger().info("ViaVersion detected server version: " + ProtocolVersion.getProtocol(ProtocolRegistry.SERVER_PROTOCOL)); platform.getLogger().info("ViaVersion detected server version: " + ProtocolVersion.getProtocol(ProtocolRegistry.SERVER_PROTOCOL));
@ -97,11 +98,13 @@ public class ViaManager {
platform.getLogger().warning("If you need support for older versions you may need to use one or more ViaVersion addons too."); platform.getLogger().warning("If you need support for older versions you may need to use one or more ViaVersion addons too.");
platform.getLogger().warning("In that case please read the ViaVersion resource page carefully or use https://jo0001.github.io/ViaSetup"); platform.getLogger().warning("In that case please read the ViaVersion resource page carefully or use https://jo0001.github.io/ViaSetup");
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 (ProtocolRegistry.SERVER_PROTOCOL == ProtocolVersion.v1_8.getVersion() && !platform.isProxy()) { } else if (ProtocolRegistry.SERVER_PROTOCOL <= ProtocolVersion.v1_12_2.getVersion() && !platform.isProxy()) {
platform.getLogger().warning("This version of Minecraft is over half a decade old and support for it will be fully dropped eventually. " platform.getLogger().warning("This version of Minecraft is extremely outdated and support for it has reached its end of life. "
+ "Please upgrade to a newer version to avoid encountering bugs and stability issues that have long been fixed."); + "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. "
+ "Please consider updating to give your players a better experience and to avoid issues that have long been fixed.");
} }
} }
// Load Listeners / Tasks // Load Listeners / Tasks
ProtocolRegistry.onServerLoaded(); ProtocolRegistry.onServerLoaded();

Datei anzeigen

@ -1,7 +1,7 @@
package us.myles.ViaVersion.api.protocol; package us.myles.ViaVersion.api.protocol;
/** /**
* Dummy protocol class for when you do not need any of the * Dummy protocol class when there is no need of any of the
* existing packet type enums or automated channel mappings. * existing packet type enums or automated channel mappings.
* *
* @see Protocol * @see Protocol