Implement server.getMotd() for BUKKIT-1799

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
Bukkit/Spigot
2012-07-03 17:39:12 -05:00
parent 0477cd71a0
commit ef912f9658
2 changed files with 11 additions and 0 deletions

View File

@@ -369,4 +369,8 @@ public final class Bukkit {
public static boolean isPrimaryThread() { public static boolean isPrimaryThread() {
return server.isPrimaryThread(); return server.isPrimaryThread();
} }
public static String getMotd() {
return server.getMotd();
}
} }

View File

@@ -644,4 +644,11 @@ public interface Server extends PluginMessageRecipient {
* Returns true if the current {@link Thread} is the server's primary thread * Returns true if the current {@link Thread} is the server's primary thread
*/ */
boolean isPrimaryThread(); boolean isPrimaryThread();
/**
* Gets the message that is displayed on the server list
*
* @returns the servers MOTD
*/
String getMotd();
} }