mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Fixed issue with JSON API plugin & player chat events
This commit is contained in:
parent
b94085c5f4
commit
64f31f2b5a
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user