diff options
author | feildmaster <admin@feildmaster.com> | 2012-07-03 17:39:12 -0500 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-07-04 23:21:03 -0500 |
commit | eb3f24011f5b5020b9912230ca97d1cff69a6958 (patch) | |
tree | 132a164b09d00df487db48a6e49b84bb69133e07 /src/main/java/org | |
parent | 3b42b1d170d8c1a9d7174461981b6c0ad4e0ba87 (diff) | |
download | bukkit-eb3f24011f5b5020b9912230ca97d1cff69a6958.tar bukkit-eb3f24011f5b5020b9912230ca97d1cff69a6958.tar.gz bukkit-eb3f24011f5b5020b9912230ca97d1cff69a6958.tar.lz bukkit-eb3f24011f5b5020b9912230ca97d1cff69a6958.tar.xz bukkit-eb3f24011f5b5020b9912230ca97d1cff69a6958.zip |
Implement server.getMotd() for BUKKIT-1799
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/Bukkit.java | 4 | ||||
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java index f59d4342..e9c408c5 100644 --- a/src/main/java/org/bukkit/Bukkit.java +++ b/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/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index a2b3ff9c..32272443 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/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 |