mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-01 08:09:39 +01:00
Fixing an NPE involving invalid players chatting.
This commit is contained in:
parent
55f9092aa6
commit
95ea6703f1
@ -519,7 +519,10 @@ public class PlayerListener implements Listener {
|
||||
|
||||
McMMOPlayer mcMMOPlayer = UserManager.getPlayer(player);
|
||||
|
||||
if (mcMMOPlayer.getPartyChatMode()) {
|
||||
if (mcMMOPlayer == null) {
|
||||
return;
|
||||
}
|
||||
else if (mcMMOPlayer.getPartyChatMode()) {
|
||||
Party party = mcMMOPlayer.getParty();
|
||||
|
||||
if (party == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user