From 60517316e9ed7e521c49e8c384706ee9cc4face2 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 15 Jan 2011 13:40:07 -0800 Subject: [PATCH] Added Server.broadcastMessage(). By: sk89q --- paper-api/src/main/java/org/bukkit/Server.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paper-api/src/main/java/org/bukkit/Server.java b/paper-api/src/main/java/org/bukkit/Server.java index 268faf3db2..6a3b47e2ae 100644 --- a/paper-api/src/main/java/org/bukkit/Server.java +++ b/paper-api/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