Fixed NPE due to McMMOPartyChangeEvent.

This commit is contained in:
GJ 2012-03-27 19:47:20 -04:00
parent 6cfc8c7a52
commit 13951e5806

View File

@ -14,7 +14,11 @@ public class McMMOPartyChangeEvent extends PlayerEvent implements Cancellable{
public McMMOPartyChangeEvent(Player player, String oldParty, String newParty, EventReason reason) {
super(player);
if (newParty != null) {
newParty = newParty.replace(":", ".");
}
this.oldParty = oldParty;
this.newParty = newParty;
this.reason = reason;