I see that there are some plugins out there able to play a sound file globally to all players when something happens.

 

Example: When night starts, plugin wolf howls for all players to hear.

 

How would someone go about adding this into a plugin themselves?