Fixed issue with JSON API plugin & player chat events

This commit is contained in:
GJ 2012-07-05 11:25:36 -04:00
parent b94085c5f4
commit 64f31f2b5a

View File

@ -314,6 +314,10 @@ public class PlayerListener implements Listener {
Player player = event.getPlayer(); Player player = event.getPlayer();
PlayerProfile profile = Users.getProfile(player); PlayerProfile profile = Users.getProfile(player);
if (profile == null) {
return;
}
if (profile.getPartyChatMode()) { if (profile.getPartyChatMode()) {
Party party = profile.getParty(); Party party = profile.getParty();