Hello! I'm having some trouble, I'm making a minigame plugin and after while of being around the NPCs their empty names suddenly appear (and show the scoreboard objectives as well). I spawn them using the API and I set the NAMEPLATE_VISIBLE property to false.
From what I understand this property creates a team and hides the nametag right? So I'm not sure why the name is popping back up, at first I thought this was something related to my scoreboard objectives but I realized the problem is that the NPC name suddenly comes back.
#(trork) NPC Nametags suddenly appearing
36 messages · Page 1 of 1 (latest)
(trork) NPC Nametags suddenly appearing
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.
+++ Info pluginconflict: https://wiki.citizensnpcs.co/Plugin_Conflict
If you've been sent to this page, you're having trouble with a plugin feature and a helper suspects it is caused by a Plugin Conflict.
if you want you can search for the problematic plugin or set always-use-name-holograms to true in settings
Then the problem is my own plugin, what could the problem be? What could I be doing in the code to cause this?
you can only hide npc names with scoreboard (if not using hologram names)
I'd enable always-use-name-holograms but it would show the scoreboard objectives and I don't want that
how would it show the scoreboard objectives?
the below_name health objective
as far as I understand if the npc name is visible the below_name objective appears as well
That's why I'm using holograms
that's not my understanding
The "always-use-name-holograms" uses the NPC name as a hologram line?
Or what does it do?
And how does that stop the NPC's name from being shown suddenly?
Its less likely to cause scoreboard naming conflicts
A common cause of scoreboard conflicts is the name being duplicated across two player entities and causing a conflict
But yes, fundamentally you have a scoreboard conflict, the npc isn’t in the right scoreboard with name visibility set to off
But that's weird, I interact with the player's scoreboard but I never remove teams, only teams created by me with custom names
Where are the npc teams created for the player? their scoreboard or the main server scoreboard?
There’s some packets, it uses teams on Util.getDummyScoreboard()
I'll enable that flag and test it
I think it worked, its difficult to know it happens randomly but activating that flag seemed to fix it
Great, if it comes back then you need to look at your scoreboard usage
Thread Closing Reminder
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command 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.)
@graceful plaza
Resolved
Thread closed as resolved.
thanks!
np
Thread Reopened
Thread was manually reopened by @hot jungle.