From f4eab2ee51aab923559f876b78a666322a86f5c5 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Fri, 26 Mar 2021 11:23:27 +0100 Subject: [PATCH] Expose protocol version --- paper-api/src/main/java/org/bukkit/UnsafeValues.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/UnsafeValues.java b/paper-api/src/main/java/org/bukkit/UnsafeValues.java index 1dea15bc75..989a7e624d 100644 --- a/paper-api/src/main/java/org/bukkit/UnsafeValues.java +++ b/paper-api/src/main/java/org/bukkit/UnsafeValues.java @@ -180,5 +180,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 }