Trigger Zones!

TriggerZones

Trigger zones allow you to execute Java-Script when a player enters or leaves the trigger zone, handy for handling progression of a player through worlds or activities.