mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
Add Server.getMaxPlayers
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
566638ff0c
commit
a72a6cba8e
1 changed files with 7 additions and 0 deletions
|
@ -31,6 +31,13 @@ public interface Server {
|
||||||
*/
|
*/
|
||||||
public Player[] getOnlinePlayers();
|
public Player[] getOnlinePlayers();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the maximum amount of players which can login to this server
|
||||||
|
*
|
||||||
|
* @return The amount of players this server allows
|
||||||
|
*/
|
||||||
|
public int getMaxPlayers();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Broadcast a message to all players.
|
* Broadcast a message to all players.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue