diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index cc2cee08b..192bc9eaf 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -64,6 +64,10 @@ public final class PartyManager { return false; } + if (firstMcMMOPlayer.getParty() == null || secondMcMMOPlayer.getParty() == null) { + return false; + } + return firstMcMMOPlayer.getParty().equals(secondMcMMOPlayer.getParty()); }