Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 11:00:06 +01:00
e4d10a6d67
Upstream has released updates that appears 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: 122289ff Add FaceAttachable interface to handle Grindstone facing in common with Switches a6db750e SPIGOT-5647: ZombieVillager entity should have getVillagerType() CraftBukkit Changes:bbe3d58e
SPIGOT-5650: Lectern.setPage(int) causes a NullPointerException3075579f
Add FaceAttachable interface to handle Grindstone facing in common with Switches95bd4238
SPIGOT-5647: ZombieVillager entity should have getVillagerType()4d975ac3
SPIGOT-5617: setBlockData does not work when NotPlayEvent is called by redstone current
34 Zeilen
1.2 KiB
Diff
34 Zeilen
1.2 KiB
Diff
From 046c71d911ea7b1bdcd6f35fb3d5fa7f77d63384 Mon Sep 17 00:00:00 2001
|
|
From: Minecrell <minecrell@minecrell.net>
|
|
Date: Wed, 11 Oct 2017 19:30:20 +0200
|
|
Subject: [PATCH] Add legacy ping support to PaperServerListPingEvent
|
|
|
|
Add a new method to StatusClient check if the client is a legacy
|
|
client that does not support all of the features provided in the
|
|
event.
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/network/StatusClient.java b/src/main/java/com/destroystokyo/paper/network/StatusClient.java
|
|
index 517d15238..ffda9f6a8 100644
|
|
--- a/src/main/java/com/destroystokyo/paper/network/StatusClient.java
|
|
+++ b/src/main/java/com/destroystokyo/paper/network/StatusClient.java
|
|
@@ -10,4 +10,16 @@ import com.destroystokyo.paper.event.server.PaperServerListPingEvent;
|
|
*/
|
|
public interface StatusClient extends NetworkClient {
|
|
|
|
+ /**
|
|
+ * Returns whether the client is using an older version that doesn't
|
|
+ * support all of the features in {@link PaperServerListPingEvent}.
|
|
+ *
|
|
+ * <p>For Vanilla, this returns {@code true} for all clients older than 1.7.</p>
|
|
+ *
|
|
+ * @return {@code true} if the client is using legacy ping
|
|
+ */
|
|
+ default boolean isLegacy() {
|
|
+ return false;
|
|
+ }
|
|
+
|
|
}
|
|
--
|
|
2.25.1
|
|
|