Added Server.broadcastMessage().
This commit is contained in:
parent
ba635ade10
commit
fdbd1537bf
@ -30,6 +30,14 @@ public interface Server {
|
||||
*/
|
||||
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…
x
Reference in New Issue
Block a user