This plugin allows you to execute player or console commands when someone enters a portal. You can also transfer players to a specific or randomized server.
Please read the wiki when setting up the resource. It contains all the information you'll need to know.