1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 10:43:12 +01:00

Check if player has a mcMMOPlayer object

Fixes #1976
This commit is contained in:
TfT_02
2014-04-12 17:06:14 +02:00
parent 7f7aa9e799
commit 837e59d187
2 changed files with 2 additions and 1 deletions

View File

@@ -629,7 +629,7 @@ public class PlayerListener implements Listener {
public void onPlayerChat(AsyncPlayerChatEvent event) {
Player player = event.getPlayer();
if (Misc.isNPCEntity(player)) {
if (Misc.isNPCEntity(player) || !UserManager.hasPlayerDataKey(player)) {
return;
}