mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Make this work properly, finally.
This commit is contained in:
parent
3df5f529eb
commit
ae5f39253e
@ -67,14 +67,14 @@ public class PartyJoinCommand implements CommandExecutor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean canJoinParty(CommandSender sender, String targetName) {
|
private boolean canJoinParty(CommandSender sender, String targetName) {
|
||||||
mcMMOTarget = Users.getPlayer(targetName);
|
|
||||||
|
|
||||||
if (mcMMOTarget == null) {
|
|
||||||
if (!mcMMO.p.getServer().getOfflinePlayer(targetName).isOnline()) {
|
if (!mcMMO.p.getServer().getOfflinePlayer(targetName).isOnline()) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.NotOnline", targetName));
|
sender.sendMessage(LocaleLoader.getString("Party.NotOnline", targetName));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mcMMOTarget = Users.getPlayer(targetName);
|
||||||
|
|
||||||
|
if (mcMMOTarget == null) {
|
||||||
sender.sendMessage(LocaleLoader.getString("Party.Player.Invalid"));
|
sender.sendMessage(LocaleLoader.getString("Party.Player.Invalid"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user