#(trork) NPC Nametags suddenly appearing

36 messages · Page 1 of 1 (latest)

graceful plaza
#

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.

narrow girderBOT
#

(trork) NPC Nametags suddenly appearing

narrow girderBOT
#

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.

hot jungle
#

yes, this is a scoreboard conflict

#

!pluginconflict

grim robinBOT
hot jungle
#

if you want you can search for the problematic plugin or set always-use-name-holograms to true in settings

graceful plaza
#

Then the problem is my own plugin, what could the problem be? What could I be doing in the code to cause this?

hot jungle
#

you can only hide npc names with scoreboard (if not using hologram names)

graceful plaza
#

I'd enable always-use-name-holograms but it would show the scoreboard objectives and I don't want that

hot jungle
#

how would it show the scoreboard objectives?

graceful plaza
#

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

hot jungle
#

that's not my understanding

graceful plaza
#

The "always-use-name-holograms" uses the NPC name as a hologram line?

#

Or what does it do?

hot jungle
#

it uses a hologram to display the npc name

#

the entity name becomes a uuid

graceful plaza
#

And how does that stop the NPC's name from being shown suddenly?

hot jungle
#

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

graceful plaza
#

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?

hot jungle
#

There’s some packets, it uses teams on Util.getDummyScoreboard()

graceful plaza
#

I'll enable that flag and test it

graceful plaza
#

I think it worked, its difficult to know it happens randomly but activating that flag seemed to fix it

hot jungle
#

Great, if it comes back then you need to look at your scoreboard usage

jagged ermineBOT
#
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.

graceful plaza
#

thanks!

hot jungle
#

np

jagged ermineBOT
#
Thread Reopened

Thread was manually reopened by @hot jungle.