NametagEdit

721k Downloads

API Questions

stuntguy3000 opened this issue ยท 6 comments

commented

Hi!

I have a client who is using this plugin, and I am making a game plugin. Involved with this game plugin is custom scoreboards/teams.

Is there a way to "refresh" a players custom name-tag so it re-appears after a match?

-Luke

commented

If I understand you correctly, the player has a custom nametag in the Players/Groups configurations, you are applying a new nametag during the game phase, and post game you want to retrieve the original tag?

At the moment that API does not have this behavior, but I can add it in if this is what you like!

commented

My plugin generates its own Scoreboard/Objective entities and applies them to the players. I don't give the players any custom nametags or anything. I haven't checked out the source code for this plugin, but when I restore the scoreboard to what they had when they join the nametag remains white.

commented

That method seems like it will work exactly, thanks!

commented

With that in mind, you could call (from the API):
clearNametag(Player player) to prevent possible crashes from belong to different scoreboard teams

I can make a method
reloadNametag(Player player) to update it from flatfile/database. Would you like this?

commented

Please see 745dab3 with a development build available at http://ci.playmc.cc/job/NametagEdit/55/. Let me know if this works for you!

commented

Thank you, I will test it tomorrow.