geforkt von SteamWar/BungeeCore
Default to 1.20 Bau for Players > 1.19.4
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
8e51002e6c
Commit
4979889468
@ -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;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren