summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-01-15 13:40:07 -0800
committersk89q <the.sk89q@gmail.com>2011-01-15 13:40:19 -0800
commitfdbd1537bf701a747f9a579bd1ca035df88398b3 (patch)
tree32cdc75b102163efe1d81488daf24f0247737129 /src/main/java/org
parentba635ade109c0fb1672419e9b98db2dfa99f03fd (diff)
downloadbukkit-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/org')
-rw-r--r--src/main/java/org/bukkit/Server.java8
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