mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Added Server.broadcastMessage().
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
73edbc4902
commit
60517316e9
1 changed files with 8 additions and 0 deletions
|
@ -29,6 +29,14 @@ public interface Server {
|
|||
* @return An array of Players that are currently online
|
||||
*/
|
||||
public Player[] getOnlinePlayers();
|
||||
|
||||
/**
|
||||
* Broadcast a message to all players.
|
||||
*
|
||||
* @param message the message
|
||||
* @return the number of players
|
||||
*/
|
||||
public int broadcastMessage(String message);
|
||||
|
||||
/**
|
||||
* Gets a player object by the given username
|
||||
|
|
Loading…
Reference in a new issue