Bukkit/CraftBukkit — pull request #1033 by kezz101 (2013-02-20 17:07:07+00:00)
Title: Add a world broadcast and broadcastMessage function

This PR adds two new functions to the CraftWorld class, broadcast and broadcastMessage. They exactly mimic CraftServer's broadcast and broadcastMessage except CraftWorld's version will only broadcast the message to players in that world.

I added it because I use lots of plugins that iterate through every single player, check the world they are in and then send them a message. It is a lot easier and less time consuming to use something like `player.getWorld().broadcastMessage("Hello people in my world!");`

CraftBukkit and Bukkit both compile successfully using Maven with this awesome addition.

To demonstrate this I have made a plugin that just has one command
> /test [worldName] [permission]

If you want to see this in action for yourself you can download the plugin [here](https://www.dropbox.com/s/mgwgxzw6r44b4xv/WBT.jar) and the modified CraftBukkit [here](https://www.dropbox.com/s/snb87sdiqxydp73/craftbukkit-1.4.7-R1.1-SNAPSHOT.jar?dl=1).