mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Fixed NPE due to McMMOPartyChangeEvent.
This commit is contained in:
parent
6cfc8c7a52
commit
13951e5806
@ -14,7 +14,11 @@ public class McMMOPartyChangeEvent extends PlayerEvent implements Cancellable{
|
||||
|
||||
public McMMOPartyChangeEvent(Player player, String oldParty, String newParty, EventReason reason) {
|
||||
super(player);
|
||||
newParty = newParty.replace(":", ".");
|
||||
|
||||
if (newParty != null) {
|
||||
newParty = newParty.replace(":", ".");
|
||||
}
|
||||
|
||||
this.oldParty = oldParty;
|
||||
this.newParty = newParty;
|
||||
this.reason = reason;
|
||||
|
Loading…
Reference in New Issue
Block a user