2020-05-06 17:48:49 +08:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2020-05-02 16:56:08 +08: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
|
2021-05-16 07:42:36 +08:00
|
|
|
index b55b2a27adba357faee0f260c8d7cc247d8d8238..688bf56b331cc4b6b9664365f97a98720ec522a9 100644
|
2020-05-02 16:56:08 +08:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
2021-02-22 04:55:01 +08:00
|
|
|
@@ -518,6 +518,13 @@ public final class CraftServer implements Server {
|
2020-05-02 16:56:08 +08: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;
|