From 64f31f2b5a4129d81e4634ac154f99fe3c0665fa Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 5 Jul 2012 11:25:36 -0400 Subject: [PATCH] Fixed issue with JSON API plugin & player chat events --- src/main/java/com/gmail/nossr50/listeners/PlayerListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 91fe1221a..cde5975a1 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -314,6 +314,10 @@ public class PlayerListener implements Listener { Player player = event.getPlayer(); PlayerProfile profile = Users.getProfile(player); + if (profile == null) { + return; + } + if (profile.getPartyChatMode()) { Party party = profile.getParty();