diff --git a/paper-api/src/main/java/org/bukkit/Bukkit.java b/paper-api/src/main/java/org/bukkit/Bukkit.java index f59d4342df..e9c408c5c4 100644 --- a/paper-api/src/main/java/org/bukkit/Bukkit.java +++ b/paper-api/src/main/java/org/bukkit/Bukkit.java @@ -369,4 +369,8 @@ public final class Bukkit { public static boolean isPrimaryThread() { return server.isPrimaryThread(); } + + public static String getMotd() { + return server.getMotd(); + } } diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index a2b3ff9cfa..32272443ac 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/src/main/java/org/bukkit/Server.java @@ -644,4 +644,11 @@ public interface Server extends PluginMessageRecipient { * Returns true if the current {@link Thread} is the server's primary thread */ boolean isPrimaryThread(); + + /** + * Gets the message that is displayed on the server list + * + * @returns the servers MOTD + */ + String getMotd(); } \ No newline at end of file