mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 16:57:42 +01:00
Implement server.getMotd() for BUKKIT-1799
By: feildmaster <admin@feildmaster.com>
This commit is contained in:
parent
0477cd71a0
commit
ef912f9658
@ -369,4 +369,8 @@ public final class Bukkit {
|
||||
public static boolean 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
|
||||
*/
|
||||
boolean isPrimaryThread();
|
||||
|
||||
/**
|
||||
* Gets the message that is displayed on the server list
|
||||
*
|
||||
* @returns the servers MOTD
|
||||
*/
|
||||
String getMotd();
|
||||
}
|
Loading…
Reference in New Issue
Block a user