summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftServer.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftServer.java b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
index 9b94c1fb..048feb89 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftServer.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftServer.java
@@ -78,6 +78,16 @@ public final class CraftServer implements Server {
return null;
}
+
+ public int broadcastMessage(String message) {
+ Player[] players = getOnlinePlayers();
+
+ for (Player player : players) {
+ player.sendMessage(message);
+ }
+
+ return players.length;
+ }
public Player getPlayer(final EntityPlayerMP entity) {
return entity.a.getPlayer();