SteamWar/BungeeCore
Archiviert
13
2

Default to 1.20 Bau for Players > 1.19.4
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-12-05 16:31:14 +01:00
Ursprung 8e51002e6c
Commit 4979889468

Datei anzeigen

@ -93,7 +93,9 @@ public class BauCommand extends SWCommand {
ProxiedPlayer player = (ProxiedPlayer) commandSender; ProxiedPlayer player = (ProxiedPlayer) commandSender;
if (s.isEmpty()) { if (s.isEmpty()) {
int version = player.getPendingConnection().getVersion(); int version = player.getPendingConnection().getVersion();
if (version > 578) { // Version > 1.15.2 if (version > 762) { // Version > 1.19.4
return ServerStarter.Version.PAPER_20;
} else if (version > 578) { // Version > 1.15.2
return ServerStarter.Version.PAPER_19; return ServerStarter.Version.PAPER_19;
} else if (version > 340) { // Version > 1.12.2 } else if (version > 340) { // Version > 1.12.2
return ServerStarter.Version.SPIGOT_15; return ServerStarter.Version.SPIGOT_15;