Update PlayerUtils.java

This commit is contained in:
squirrel 2024-01-28 18:33:12 +08:00 committed by GitHub
parent 9b93e0e4b6
commit 4b44521e2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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