diff options
Diffstat (limited to 'patches/server/0396-Expose-game-version.patch')
-rw-r--r-- | patches/server/0396-Expose-game-version.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/server/0396-Expose-game-version.patch b/patches/server/0396-Expose-game-version.patch new file mode 100644 index 0000000000..87d1ff120a --- /dev/null +++ b/patches/server/0396-Expose-game-version.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Mark Vainomaa <[email protected]> +Date: Fri, 1 May 2020 17:39:26 +0300 +Subject: [PATCH] Expose game version + + +diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java +index 237127907c3c8ddcd16bdc9645e84a2d0b922440..30199124d6c1a394fa074a221d6015c09acdd43a 100644 +--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java ++++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java +@@ -579,6 +579,13 @@ public final class CraftServer implements Server { + return this.bukkitVersion; + } + ++ // Paper start - expose game version ++ @Override ++ public String getMinecraftVersion() { ++ return console.getServerVersion(); ++ } ++ // Paper end ++ + @Override + public List<CraftPlayer> getOnlinePlayers() { + return this.playerView; |