Make this work properly, finally.

This commit is contained in:
GJ 2013-02-08 15:32:06 -05:00
parent 3df5f529eb
commit ae5f39253e

View File

@ -67,14 +67,14 @@ public class PartyJoinCommand implements CommandExecutor {
}
private boolean canJoinParty(CommandSender sender, String targetName) {
mcMMOTarget = Users.getPlayer(targetName);
if (mcMMOTarget == null) {
if (!mcMMO.p.getServer().getOfflinePlayer(targetName).isOnline()) {
sender.sendMessage(LocaleLoader.getString("Party.NotOnline", targetName));
return false;
}
mcMMOTarget = Users.getPlayer(targetName);
if (mcMMOTarget == null) {
sender.sendMessage(LocaleLoader.getString("Party.Player.Invalid"));
return false;
}