bekvon/Residence — pull request #80 by javacraft (2013-05-07 03:57:59+00:00)
Title: Feature Request: ResidenceChangedEvent

Greetings once more:

Thanks for taking the time to get ResidenceEnter/Leave events working properly. It is much appreciate. They are working like a charm. As you may have garnered from my previous comments, we have been working on expanding our internal permissions system to allow residence-specific permissions and/or permission groups.

While working on that project, we've come to realize that individual leave and enter events are not that conducive when working with all but the simplest residences. Residences with several levels of subzones quickly turn zone transition evaluations into a cumbersome task because there is no direct correlation between leave and enter events.

Instead, we chose to follow along similar lines as the PlayerMove event, by creating a ResidenceChangedEvent containing references to both the residence being left and the residence being entered. Obviously, either of these could be null if there is no originating or destination residence, in essence resembling ResidenceEnter/Leave event. We hope that you see it fit to include this additional event in your build.