From add4bc24df3ab16b4d32fcdd0317b570b61e18bb Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 18 Feb 2013 10:29:33 -0500 Subject: [PATCH] Actually, we CAN use that check here. --- src/main/java/com/gmail/nossr50/listeners/PlayerListener.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java index 521910e5b..a1c1ace9b 100644 --- a/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/PlayerListener.java @@ -125,8 +125,7 @@ public class PlayerListener implements Listener { if (event.getResult() == Result.ALLOWED) { Player player = event.getPlayer(); - /* We can't use the other check here because a profile hasn't been created yet.*/ - if (player == null || player.hasMetadata("NPC")) { + if (Misc.isNPCPlayer(player)) { return; }