Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
Updated Upstream (Bukkit/CraftBukkit/Spigot)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: ea30a299 Add docs in ServerListPingEvent based on changes from 1.18 CraftBukkit Changes: 03f249f0 Generate bootstrap jar separately 3b214b5a SPIGOT-6803: Fix ServerPing not using the new logic for show players in 1.18 Spigot Changes: c07753b0 Rebuild patches
Dieser Commit ist enthalten in:
Ursprung
66dbf41a65
Commit
3cd2c987cf
@ -3008,10 +3008,10 @@ index 03bfca9d368bbe4b7c1353d52c883e756bf69bda..4f8c85222c7bd33217c7db0ff5f47bf3
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
diff --git a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
diff --git a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
||||||
index 7a2a58bac8e721c3f0c64f69f77be07a51f76d58..ede5a41bc071a9c9cea369b227b37a50222f295d 100644
|
index cc5e2fef75736e56420df4cf4f83152fa97926df..fd4db14bef92b893ddaf5424e14ee71da22dcf84 100644
|
||||||
--- a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
--- a/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
||||||
+++ b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
+++ b/src/main/java/org/bukkit/event/server/ServerListPingEvent.java
|
||||||
@@ -17,15 +17,16 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
|
@@ -21,15 +21,16 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
|
||||||
private static final int MAGIC_PLAYER_COUNT = Integer.MIN_VALUE;
|
private static final int MAGIC_PLAYER_COUNT = Integer.MIN_VALUE;
|
||||||
private static final HandlerList handlers = new HandlerList();
|
private static final HandlerList handlers = new HandlerList();
|
||||||
private final InetAddress address;
|
private final InetAddress address;
|
||||||
@ -3030,7 +3030,7 @@ index 7a2a58bac8e721c3f0c64f69f77be07a51f76d58..ede5a41bc071a9c9cea369b227b37a50
|
|||||||
this.numPlayers = numPlayers;
|
this.numPlayers = numPlayers;
|
||||||
this.maxPlayers = maxPlayers;
|
this.maxPlayers = maxPlayers;
|
||||||
}
|
}
|
||||||
@@ -38,14 +39,58 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
|
@@ -42,14 +43,58 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
|
||||||
* @param address the address of the pinger
|
* @param address the address of the pinger
|
||||||
* @param motd the message of the day
|
* @param motd the message of the day
|
||||||
* @param maxPlayers the max number of players
|
* @param maxPlayers the max number of players
|
||||||
@ -3089,7 +3089,7 @@ index 7a2a58bac8e721c3f0c64f69f77be07a51f76d58..ede5a41bc071a9c9cea369b227b37a50
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the address the ping is coming from.
|
* Get the address the ping is coming from.
|
||||||
@@ -61,19 +106,23 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
|
@@ -65,19 +110,23 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
|
||||||
* Get the message of the day message.
|
* Get the message of the day message.
|
||||||
*
|
*
|
||||||
* @return the message of the day
|
* @return the message of the day
|
||||||
|
@ -179,7 +179,7 @@ index 0000000000000000000000000000000000000000..273746fe476a9a09ebca01c6ecd814b7
|
|||||||
+}
|
+}
|
||||||
diff --git a/pom.xml b/pom.xml
|
diff --git a/pom.xml b/pom.xml
|
||||||
deleted file mode 100644
|
deleted file mode 100644
|
||||||
index 46c1c0461ab4ddfe652fc260b7647bdfc704f36f..0000000000000000000000000000000000000000
|
index 3610b0d8e10f873b8480864d6f73c20ae8c5d1f1..0000000000000000000000000000000000000000
|
||||||
--- a/pom.xml
|
--- a/pom.xml
|
||||||
+++ /dev/null
|
+++ /dev/null
|
||||||
@@ -1,539 +0,0 @@
|
@@ -1,539 +0,0 @@
|
||||||
@ -568,7 +568,6 @@ index 46c1c0461ab4ddfe652fc260b7647bdfc704f36f..00000000000000000000000000000000
|
|||||||
- <goal>single</goal>
|
- <goal>single</goal>
|
||||||
- </goals>
|
- </goals>
|
||||||
- <configuration>
|
- <configuration>
|
||||||
- <appendAssemblyId>false</appendAssemblyId>
|
|
||||||
- <archive>
|
- <archive>
|
||||||
- <manifest>
|
- <manifest>
|
||||||
- <addDefaultEntries>false</addDefaultEntries>
|
- <addDefaultEntries>false</addDefaultEntries>
|
||||||
@ -577,6 +576,7 @@ index 46c1c0461ab4ddfe652fc260b7647bdfc704f36f..00000000000000000000000000000000
|
|||||||
- <Main-Class>org.bukkit.craftbukkit.bootstrap.Main</Main-Class>
|
- <Main-Class>org.bukkit.craftbukkit.bootstrap.Main</Main-Class>
|
||||||
- </manifestEntries>
|
- </manifestEntries>
|
||||||
- </archive>
|
- </archive>
|
||||||
|
- <attach>false</attach>
|
||||||
- <descriptors>
|
- <descriptors>
|
||||||
- <descriptor>${project.basedir}/src/assembly/bootstrap.xml</descriptor>
|
- <descriptor>${project.basedir}/src/assembly/bootstrap.xml</descriptor>
|
||||||
- </descriptors>
|
- </descriptors>
|
||||||
|
@ -213,7 +213,7 @@ index 543acb52698deb890a2624112e63be275a52c008..e9333b85100d7670b2be7df6e847dfca
|
|||||||
|
|
||||||
for (int k = 0; k < agameprofile.length; ++k) {
|
for (int k = 0; k < agameprofile.length; ++k) {
|
||||||
diff --git a/src/main/java/net/minecraft/server/network/ServerStatusPacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerStatusPacketListenerImpl.java
|
diff --git a/src/main/java/net/minecraft/server/network/ServerStatusPacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerStatusPacketListenerImpl.java
|
||||||
index dff7b1005f60c762ed81de5eb77e1575f07f5ce9..4edbdc7379714609053606b492942cfc768245e1 100644
|
index 2b24a41587fbe1fba70a0ab42d3dc33358f2ba2e..4fa79d37ff4e70c61672cce7c55257c46232c026 100644
|
||||||
--- a/src/main/java/net/minecraft/server/network/ServerStatusPacketListenerImpl.java
|
--- a/src/main/java/net/minecraft/server/network/ServerStatusPacketListenerImpl.java
|
||||||
+++ b/src/main/java/net/minecraft/server/network/ServerStatusPacketListenerImpl.java
|
+++ b/src/main/java/net/minecraft/server/network/ServerStatusPacketListenerImpl.java
|
||||||
@@ -47,6 +47,8 @@ public class ServerStatusPacketListenerImpl implements ServerStatusPacketListene
|
@@ -47,6 +47,8 @@ public class ServerStatusPacketListenerImpl implements ServerStatusPacketListene
|
||||||
@ -223,9 +223,9 @@ index dff7b1005f60c762ed81de5eb77e1575f07f5ce9..4edbdc7379714609053606b492942cfc
|
|||||||
+ // Paper start - Replace everything
|
+ // Paper start - Replace everything
|
||||||
+ /*
|
+ /*
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
// this.networkManager.sendPacket(new PacketStatusOutServerInfo(this.minecraftServer.getServerPing()));
|
// this.connection.send(new PacketStatusOutServerInfo(this.server.getStatus()));
|
||||||
final Object[] players = this.server.getPlayerList().players.toArray();
|
final Object[] players = this.server.getPlayerList().players.toArray();
|
||||||
@@ -143,6 +145,9 @@ public class ServerStatusPacketListenerImpl implements ServerStatusPacketListene
|
@@ -150,6 +152,9 @@ public class ServerStatusPacketListenerImpl implements ServerStatusPacketListene
|
||||||
|
|
||||||
this.connection.send(new ClientboundStatusResponsePacket(ping));
|
this.connection.send(new ClientboundStatusResponsePacket(ping));
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b364c062bb9b9534c0dd34c7a46f3f1acbfb195d
|
Subproject commit 8581e449a3490934f8bfa8b36d45842393dc8a20
|
@ -1 +1 @@
|
|||||||
Subproject commit 07a055315ce10d9e6134b9367443ddeeda501236
|
Subproject commit ea30a299e948f5545b0ad042bd8e11716aeaa7f2
|
@ -1 +1 @@
|
|||||||
Subproject commit dd02403be2ea957207939f1eec83cd2753d95bbc
|
Subproject commit 03f249f09854e409a231d5e2024cef635d652b79
|
@ -1 +1 @@
|
|||||||
Subproject commit d5de734690f9745e2c8968cf5369664ff0f53af9
|
Subproject commit c07753b057d92ef6c0f9ad8e8446f51bcc37604d
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren