Sfoglia il codice sorgente

Fixed issue with JSON API plugin & player chat events

GJ 13 anni fa
parent
commit
64f31f2b5a

+ 4 - 0
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();