mcMMO-Dev/mcMMO — pull request #387 by dualspiral (2012-12-29 12:50:00+00:00)
Title: Don't fire Party Change event if player can't change parties

Currently, the mcMMOPlayerChangeEvent is fired before any party changes take place. The event should not be raised if the player is ineligible to change parties. Plugins subscribing to this event, particularly on MONITOR priority, therefore assume that the party change is going through.

This patch tests if a player can join a party before firing the event, and doesn't fire it if the target party has a lock on it and/or the password provided is incorrect.