Fixed /party invite trying to invite "invite"

This commit is contained in:
bm01 2013-02-09 14:50:03 +01:00
parent 457754b6f1
commit 73924543df

View File

@ -30,12 +30,12 @@ public class PartyInviteCommand implements CommandExecutor {
switch (args.length) { switch (args.length) {
case 2: case 2:
if (!mcMMO.p.getServer().getOfflinePlayer(args[0]).isOnline()) { if (!mcMMO.p.getServer().getOfflinePlayer(args[1]).isOnline()) {
sender.sendMessage(LocaleLoader.getString("Party.NotOnline", args[0])); sender.sendMessage(LocaleLoader.getString("Party.NotOnline", args[1]));
return false; return false;
} }
mcMMOTarget = Users.getPlayer(args[0]); mcMMOTarget = Users.getPlayer(args[1]);
if (mcMMOTarget == null) { if (mcMMOTarget == null) {
sender.sendMessage(LocaleLoader.getString("Party.Player.Invalid")); sender.sendMessage(LocaleLoader.getString("Party.Player.Invalid"));