mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 13:46:46 +01:00
Cover ALL the bases.
This commit is contained in:
parent
b78299bbbd
commit
08b46e1a7c
@ -26,7 +26,7 @@ public class Misc {
|
|||||||
public static final int PLAYER_RESPAWN_COOLDOWN_SECONDS = 5;
|
public static final int PLAYER_RESPAWN_COOLDOWN_SECONDS = 5;
|
||||||
|
|
||||||
public static boolean isCitizensNPC(Player player) {
|
public static boolean isCitizensNPC(Player player) {
|
||||||
if (player == null || Users.getProfile(player) == null) {
|
if (player == null || Users.getProfile(player) == null || player.hasMetadata("NPC")) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user