This already works natively with the plugin. It is achieved through the script in the door events you can copy straight from the included Essentials maps. On the second event page (the exit door event), there is script in them that handles this. Here is what it looks like:
EDIT: I should...