2020-05-06 11:22:03 +02:00
|
|
|
From 22d0e4e2aded18b3561e3cda3e65d64a27ac17a5 Mon Sep 17 00:00:00 2001
|
2020-05-02 10:56:08 +02: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-05-06 11:22:03 +02:00
|
|
|
index f49193d9d7c..1647c09756e 100644
|
2020-05-02 10:56:08 +02:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2020-05-02 19:32:03 +02:00
|
|
|
@@ -489,6 +489,13 @@ public final class CraftServer implements Server {
|
2020-05-02 10:56:08 +02: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;
|
|
|
|
--
|
2020-05-06 11:22:03 +02:00
|
|
|
2.26.2
|
2020-05-02 19:32:03 +02:00
|
|
|
|