Added Server.broadcastMessage().

This commit is contained in:
sk89q
2011-01-15 13:40:07 -08:00
parent e50b5d6ecf
commit 5f997b11e8

View File

@@ -30,6 +30,14 @@ public interface Server {
*/ */
public Player[] getOnlinePlayers(); 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 * Gets a player object by the given username
* *