Removing Players Nametag

Discussion in 'Spigot Help' started by lookcook, May 20, 2016.

  1. Is it possible to remove a players nametag without putting an entity on him? If so can someone point me in the right direction of doing it, it doesn't matter if it uses NMS :p? Thanks.

    (The reason I don't to put an entity on his head is because they wont be able to teleport for some reason, you could also help me solve that if their is no other way :p)
    • Optimistic Optimistic x 1
  2. Use scoreboard teams:
    Code (Text):
    Team teams = sco.registerNewTeam("Stuff");
    • Like Like x 1
    • Agree Agree x 1
    • Useful Useful x 1
  3. I just came off my computer >.> thanks if this works xD
    • Like Like x 1
    • Optimistic Optimistic x 1
  4. It still shows the nametag,

    debug code:
    Code (Text):
        public void onJoin(PlayerJoinEvent event) {
            if (teams.getPlayers().contains(event.getPlayer())) {
                System.out.println("team contains player!");
    Outcome in console:
    Any other solutions?

    @avighnash do you need the full code if you think im doing something wrong?

    Edit: BTW refresh nametag has nothing to do with the team :p
    • Optimistic Optimistic x 1
  5. Minecraft 1.8.x or 1.9.x ?
  6. 1.9.x >.>
    • Optimistic Optimistic x 1
  7. Try
    Code (Text):
    Team team = sco.registerNewTeam("erer");
  8. Back on phone- will try this in the morning :p
    • Optimistic Optimistic x 1
  9. Should work I think.
    Code (Text):

       Scoreboard sb = ...;
       Team team = sb.registerNewTeam("match");
       team.setOption(Option.NAME_TAG_VISIBILITY, Team.OptionStatus.NEVER);
  10. Omg... I didn't set the players scoreboard lol, I just added him to the team, ty
    • Like Like x 3
    • Optimistic Optimistic x 1