From 9c988f7504d9e12aca27e2835286ef100b5a4b43 Mon Sep 17 00:00:00 2001 From: William Blake Galbreath Date: Sun, 26 May 2019 15:18:40 -0500 Subject: [PATCH] Bring back server name --- src/main/java/org/bukkit/Bukkit.java | 9 +++++++++ src/main/java/org/bukkit/Server.java | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java index 36e48723..451dc570 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -1622,6 +1622,15 @@ public final class Bukkit { } // Purpur start + /** + * Get the name of this server + * @return the name of the server + */ + @NotNull + public static String getServerName() { + return server.getServerName(); + } + /** * Get the last 100 tick times (in nanos) * @return Last 100 tick times (in nanos) diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index c28cc59c..57bb2dde 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -1415,6 +1415,13 @@ public interface Server extends PluginMessageRecipient { // Paper end // Purpur start + /** + * Get the name of this server + * @return the name of the server + */ + @NotNull + String getServerName(); + /** * Get the last 100 tick times (in nanos) * -- 2.24.0