Update PlayerUtils.java
This commit is contained in:
parent
9b93e0e4b6
commit
4b44521e2d
|
@ -28,7 +28,7 @@ public final class PlayerUtils {
|
|||
* @return True if the player is an NPC, false otherwise
|
||||
*/
|
||||
public static boolean isNpc(Player player) {
|
||||
return player.hasMetadata("NPC");
|
||||
return player.hasMetadata("NPC") || player.getAddress() == null;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue