diff options
Diffstat (limited to 'patches/api/0262-Expose-protocol-version.patch')
-rw-r--r-- | patches/api/0262-Expose-protocol-version.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/api/0262-Expose-protocol-version.patch b/patches/api/0262-Expose-protocol-version.patch new file mode 100644 index 0000000000..3c5153dc6b --- /dev/null +++ b/patches/api/0262-Expose-protocol-version.patch @@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Nassim Jahnke <[email protected]> +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 +index 0bd07a92614e39385859d74a016184d78b8f58e3..5f2d521a54d03a2270a1812146f954dc16c9d728 100644 +--- a/src/main/java/org/bukkit/UnsafeValues.java ++++ b/src/main/java/org/bukkit/UnsafeValues.java +@@ -170,5 +170,12 @@ public interface UnsafeValues { + * Just don't use it. + */ + @org.jetbrains.annotations.NotNull String getMainLevelName(); ++ ++ /** ++ * Returns the server's protocol version. ++ * ++ * @return the server's protocol version ++ */ ++ int getProtocolVersion(); + // Paper end + } |