From ef912f9658081496e9221058071364d290352134 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Tue, 3 Jul 2012 17:39:12 -0500 Subject: [PATCH] Implement server.getMotd() for BUKKIT-1799 By: feildmaster --- paper-api/src/main/java/org/bukkit/Bukkit.java | 4 ++++ paper-api/src/main/java/org/bukkit/Server.java | 7 +++++++ 2 files changed, 11 insertions(+) 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