Actually, we CAN use that check here.

This commit is contained in:
GJ 2013-02-18 10:29:33 -05:00
parent 1da1bb7218
commit add4bc24df

View File

@ -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;
}