Implement server.getMotd() for BUKKIT-1799
This commit is contained in:
parent
3b42b1d170
commit
eb3f24011f
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user