mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 13:07:06 +01:00
27 lines
858 B
Diff
27 lines
858 B
Diff
|
From af32f51b7d7f78c747834086cecc8e87c6180a97 Mon Sep 17 00:00:00 2001
|
||
|
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
|
||
|
index b9a398bc5..5bd6f2a88 100644
|
||
|
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
||
|
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
|
||
|
@@ -488,6 +488,13 @@ public final class CraftServer implements Server {
|
||
|
return bukkitVersion;
|
||
|
}
|
||
|
|
||
|
+ // Paper start - expose game version
|
||
|
+ @Override
|
||
|
+ public String getMinecraftVersion() {
|
||
|
+ return console.getVersion();
|
||
|
+ }
|
||
|
+ // Paper end
|
||
|
+
|
||
|
@Override
|
||
|
public List<CraftPlayer> getOnlinePlayers() {
|
||
|
return this.playerView;
|
||
|
--
|
||
|
2.25.1
|