mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
True, not false.
This commit is contained in:
parent
d7e74b9fe0
commit
92473cc56d
@ -32,14 +32,14 @@ public class PartyInviteCommand implements CommandExecutor {
|
|||||||
case 2:
|
case 2:
|
||||||
if (!mcMMO.p.getServer().getOfflinePlayer(args[1]).isOnline()) {
|
if (!mcMMO.p.getServer().getOfflinePlayer(args[1]).isOnline()) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.NotOnline", args[1]));
|
sender.sendMessage(LocaleLoader.getString("Party.NotOnline", args[1]));
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
mcMMOTarget = Users.getPlayer(args[1]);
|
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"));
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
target = mcMMOTarget.getPlayer();
|
target = mcMMOTarget.getPlayer();
|
||||||
|
Loading…
Reference in New Issue
Block a user