mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fixed /party invite trying to invite "invite"
This commit is contained in:
parent
457754b6f1
commit
73924543df
@ -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"));
|
||||||
|
Loading…
Reference in New Issue
Block a user