mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
@@ -164,6 +164,15 @@ public final class Bukkit {
|
|||||||
return server.getMaxPlayers();
|
return server.getMaxPlayers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the maximum amount of players allowed to be logged in at once.
|
||||||
|
*
|
||||||
|
* @param maxPlayers The maximum amount of concurrent players
|
||||||
|
*/
|
||||||
|
public static void setMaxPlayers(int maxPlayers) {
|
||||||
|
server.setMaxPlayers(maxPlayers);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the game port that the server runs on.
|
* Get the game port that the server runs on.
|
||||||
*
|
*
|
||||||
@@ -1534,6 +1543,15 @@ public final class Bukkit {
|
|||||||
return server.getMotd();
|
return server.getMotd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the message that is displayed on the server list.
|
||||||
|
*
|
||||||
|
* @param motd The message to be displayed
|
||||||
|
*/
|
||||||
|
public static void setMotd(@NotNull String motd) {
|
||||||
|
server.setMotd(motd);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the default message that is displayed when the server is stopped.
|
* Gets the default message that is displayed when the server is stopped.
|
||||||
*
|
*
|
||||||
|
@@ -139,6 +139,13 @@ public interface Server extends PluginMessageRecipient {
|
|||||||
*/
|
*/
|
||||||
public int getMaxPlayers();
|
public int getMaxPlayers();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the maximum amount of players allowed to be logged in at once.
|
||||||
|
*
|
||||||
|
* @param maxPlayers The maximum amount of concurrent players
|
||||||
|
*/
|
||||||
|
void setMaxPlayers(int maxPlayers);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the game port that the server runs on.
|
* Get the game port that the server runs on.
|
||||||
*
|
*
|
||||||
@@ -1301,6 +1308,13 @@ public interface Server extends PluginMessageRecipient {
|
|||||||
@NotNull
|
@NotNull
|
||||||
String getMotd();
|
String getMotd();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the message that is displayed on the server list.
|
||||||
|
*
|
||||||
|
* @param motd The message to be displayed
|
||||||
|
*/
|
||||||
|
void setMotd(@NotNull String motd);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the default message that is displayed when the server is stopped.
|
* Gets the default message that is displayed when the server is stopped.
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user