mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 11:45:52 -07:00
Minecraft 1.9.4
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
public class PacketStatusListener implements PacketStatusInListener {
|
||||
|
||||
private static final IChatBaseComponent a = new ChatComponentText("Status request has been handled.");
|
||||
@@ -19,8 +30,101 @@
|
||||
@@ -19,8 +30,96 @@
|
||||
this.networkManager.close(PacketStatusListener.a);
|
||||
} else {
|
||||
this.d = true;
|
||||
@@ -107,11 +107,6 @@
|
||||
+ ping.setMOTD(new ChatComponentText(event.getMotd()));
|
||||
+ ping.setPlayerSample(playerSample);
|
||||
+ int version = minecraftServer.getServerPing().getServerData().getProtocolVersion();
|
||||
+ if (this.networkManager.channel.pipeline().get(PacketEncoder.class).version == 108) {
|
||||
+ version = 108;
|
||||
+ } else if (this.networkManager.channel.pipeline().get(PacketEncoder.class).version == 107) {
|
||||
+ version = 107;
|
||||
+ }
|
||||
+ ping.setServerInfo(new ServerPing.ServerData(minecraftServer.getServerModName() + " " + minecraftServer.getVersion(), version));
|
||||
+
|
||||
+ this.networkManager.sendPacket(new PacketStatusOutServerInfo(ping));
|
||||
|
Reference in New Issue
Block a user