diff options
author | sk89q <the.sk89q@gmail.com> | 2011-01-15 13:40:07 -0800 |
---|---|---|
committer | sk89q <the.sk89q@gmail.com> | 2011-01-15 13:40:19 -0800 |
commit | fdbd1537bf701a747f9a579bd1ca035df88398b3 (patch) | |
tree | 32cdc75b102163efe1d81488daf24f0247737129 /src/main/java | |
parent | ba635ade109c0fb1672419e9b98db2dfa99f03fd (diff) | |
download | bukkit-fdbd1537bf701a747f9a579bd1ca035df88398b3.tar bukkit-fdbd1537bf701a747f9a579bd1ca035df88398b3.tar.gz bukkit-fdbd1537bf701a747f9a579bd1ca035df88398b3.tar.lz bukkit-fdbd1537bf701a747f9a579bd1ca035df88398b3.tar.xz bukkit-fdbd1537bf701a747f9a579bd1ca035df88398b3.zip |
Added Server.broadcastMessage().
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/Server.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java index 268faf3d..6a3b47e2 100644 --- a/src/main/java/org/bukkit/Server.java +++ b/src/main/java/org/bukkit/Server.java @@ -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 |