From 317a39177b1af3876ecb6c295f39a02bee4c4b17 Mon Sep 17 00:00:00 2001 From: bm01 Date: Sat, 9 Feb 2013 14:51:36 +0100 Subject: [PATCH] Fixed NPE on /party invite when used without a second argument --- .../com/gmail/nossr50/party/commands/PartyInviteCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/party/commands/PartyInviteCommand.java b/src/main/java/com/gmail/nossr50/party/commands/PartyInviteCommand.java index d002139ee..f30255e9b 100644 --- a/src/main/java/com/gmail/nossr50/party/commands/PartyInviteCommand.java +++ b/src/main/java/com/gmail/nossr50/party/commands/PartyInviteCommand.java @@ -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; } }