testserver/Spigot-Server-Patches/0473-Expose-game-version.patch

25 lines
909 B
Diff
Raw Normal View History

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2020-05-02 08:56:08 +00:00
From: Mark Vainomaa <mikroskeem@mikroskeem.eu>
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
2020-06-26 16:20:03 +00:00
index 604723d6f93b694f59f9844486d2b0c8f24a39af..893088011b8e15449c3c9003e52a884b61221acc 100644
2020-05-02 08:56:08 +00:00
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
2020-06-26 16:20:03 +00:00
@@ -516,6 +516,13 @@ public final class CraftServer implements Server {
2020-05-02 08:56:08 +00:00
return bukkitVersion;
}
+ // Paper start - expose game version
+ @Override
+ public String getMinecraftVersion() {
+ return console.getVersion();
+ }
+ // Paper end
+
@Override
public List<CraftPlayer> getOnlinePlayers() {
return this.playerView;