Fixed NPE on /party invite when used without a second argument

This commit is contained in:
bm01 2013-02-09 14:51:36 +01:00
parent 73924543df
commit 317a39177b

View File

@ -66,7 +66,7 @@ public class PartyInviteCommand implements CommandExecutor {
return true;
default:
player.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "invite", "<" + LocaleLoader.getString("Commands.Usage.Player") + ">"));
sender.sendMessage(LocaleLoader.getString("Commands.Usage.2", "party", "invite", "<" + LocaleLoader.getString("Commands.Usage.Player") + ">"));
return true;
}
}