2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2022-08-01 16:01:20 +02:00
|
|
|
From: Nassim Jahnke <nassim@njahnke.dev>
|
2021-06-11 14:02:28 +02:00
|
|
|
Date: Fri, 26 Mar 2021 11:23:27 +0100
|
|
|
|
Subject: [PATCH] Expose protocol version
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/UnsafeValues.java b/src/main/java/org/bukkit/UnsafeValues.java
|
2024-10-31 23:44:34 +01:00
|
|
|
index e924f313cead4cb0a9d73f5be8bc69b654293ddf..ce9bbe4a9010ca31ace1f0b7fb67eab0f13ac97d 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/org/bukkit/UnsafeValues.java
|
|
|
|
+++ b/src/main/java/org/bukkit/UnsafeValues.java
|
2024-10-31 23:44:34 +01:00
|
|
|
@@ -180,5 +180,12 @@ public interface UnsafeValues {
|
2024-04-27 01:43:59 +02:00
|
|
|
* Just don't use it.
|
2021-06-11 14:02:28 +02:00
|
|
|
*/
|
2024-04-27 01:43:59 +02:00
|
|
|
@org.jetbrains.annotations.NotNull String getMainLevelName();
|
2021-06-11 14:02:28 +02:00
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Returns the server's protocol version.
|
|
|
|
+ *
|
|
|
|
+ * @return the server's protocol version
|
|
|
|
+ */
|
|
|
|
+ int getProtocolVersion();
|
|
|
|
// Paper end
|
|
|
|
}
|