Archiviert
13
0

Added Server.broadcastMessage().

Dieser Commit ist enthalten in:
sk89q 2011-01-15 13:40:15 -08:00
Ursprung 4d1c1fe5ed
Commit f6d4979aa2

Datei anzeigen

@ -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();