#(noisydk) NPC visible only to one player
23 messages · Page 1 of 1 (latest)
(noisydk) NPC visible only to one player
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
@slow pecan yes, for now use the bukkit hide/showPlayer methods
Thread is now a Feature thread. This indicates a request for a new feature to the plugin, that both (A) does not already exist and (B) reasonably can be added. If you are unsure whether this applies, use </helpthread:1028674284870180883> to change back to a normal help thread.
Do you have a code snippet how this can look approximately? thanks for the quick answer in advance
for (Player player : CitizensAPI.getLocationLookup().getNearbyPlayers(base, 64)){npcPlayer.hidePlayer(player);}
Can I somehow also make the NPC only visible to a certain player and invisible to all other players on the server?
yes
how 
A.hidePlayer(B) would hide B from A, you can use that however you'd like to hide players/NPCs - for further questions, as fullwall said, you should ask Spigot/Paper
Has your issue been resolved, or your question been answered?
If so, please type </resolved:1028673926114594866> to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@slow pecan