Visibility

Visibility

View as Markdown ·

On this page

circle-info

Show conditions and hidden players are saved in the NPC's own file in the npcs folder.

A player sees an NPC when every rule below passes: same world, inside the visibility distance, the visibility permission, every show condition, and not hidden from them. A disabled NPC is shown to nobody.

#Show Conditions

A list of conditions, all of which have to pass, such as %player_level% >= 10 or item:MAP:1. They are checked again every half second for each player, so the NPC appears and disappears as placeholders change. An invalid condition is not saved.

/pnpc edit <id> condition <add|remove|clear|list> [condition] does the same from a command.

#Hiding From a Player

The Hidden Players screen lists the players the NPC is hidden from, and the green pane hides it from one more by name. This survives restarts and works for players who are offline.

Command Does
/pnpc hide <id> <player> Hides the NPC from the player.
/pnpc show <id> <player> Shows it to them again.

Plugins such as BetonQuest hide NPCs from players through their own rules, see Integrations. Those hides are not listed here.

#Debugging

Check a Player in the NPC's Visibility screen asks for a player's name and shows the same list. /pnpc debug visibility <id> [player] lists every reason the player cannot see the NPC: disabled, not spawned, a setup problem, no body yet, another world, too far away, chunk not loaded, missing permission, each failing show condition, hidden by command or by another plugin. It also says whether the NPC is shown to them right now. Without a player it checks you.

My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping