diff --git a/src/main/java/com/gmail/nossr50/party/commands/PartyJoinCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PartyJoinCommand.java index 092bac578..dcb1e15fb 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartyJoinCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyJoinCommand.java @@ -76,15 +76,13 @@ public class PartyJoinCommand implements CommandExecutor { sender.sendMessage(LocaleLoader.getString("Commands.DoesNotExist")); return false; } - } - target = mcMMOTarget.getPlayer(); - - if (!target.isOnline()) { sender.sendMessage(LocaleLoader.getString("Party.NotOnline", targetName)); return false; } + target = mcMMOTarget.getPlayer(); + if (!mcMMOTarget.inParty()) { sender.sendMessage(LocaleLoader.getString("Party.PlayerNotInParty", targetName)); return false;