From ae5f39253ed6f4b83239b91d870422e29a2591ce Mon Sep 17 00:00:00 2001 From: GJ Date: Fri, 8 Feb 2013 15:32:06 -0500 Subject: [PATCH] Make this work properly, finally. --- .../gmail/nossr50/party/commands/PartyJoinCommand.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 0dfc994d8..eec86f601 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartyJoinCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyJoinCommand.java @@ -67,14 +67,14 @@ public class PartyJoinCommand implements CommandExecutor { } private boolean canJoinParty(CommandSender sender, String targetName) { + if (!mcMMO.p.getServer().getOfflinePlayer(targetName).isOnline()) { + sender.sendMessage(LocaleLoader.getString("Party.NotOnline", targetName)); + return false; + } + mcMMOTarget = Users.getPlayer(targetName); if (mcMMOTarget == null) { - if (!mcMMO.p.getServer().getOfflinePlayer(targetName).isOnline()) { - sender.sendMessage(LocaleLoader.getString("Party.NotOnline", targetName)); - return false; - } - sender.sendMessage(LocaleLoader.getString("Party.Player.Invalid")); return false; }