From c6f31092649e1ffbe6b501a09423919c560f3b8e Mon Sep 17 00:00:00 2001 From: virtualWinter Date: Fri, 21 Jul 2023 05:53:13 +0300 Subject: [PATCH] Add Server and Bukkit#getServerGroup() diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java index 8fbc8283..48cbaa23 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/src/main/java/org/bukkit/Bukkit.java @@ -79,6 +79,13 @@ public final class Bukkit { server.getLogger().info("This server is running " + getName() + " version " + getVersion() + " (Implementing API version " + getBukkitVersion() + ")"); } + /** + * @see Server#getServerGroup() + */ + public static String getServerGroup() { + return server.getServerGroup(); + } + /** * Gets the name of this server implementation. * diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 1b62463a..d001e286 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -65,6 +65,14 @@ public interface Server extends PluginMessageRecipient { */ public static final String BROADCAST_CHANNEL_USERS = "bukkit.broadcast.user"; + /** + * Get the server group of this server. + * + * @return the server group of this server + */ + public String getServerGroup(); + + /** * Gets the name of this server implementation. * -- 2.41.0.windows.1