PlayerNamelist only for a group visible

Discussion in 'Plugin Development' started by Niko3DGames, May 3, 2018.

Thread Status:
Not open for further replies.
  1. hi,
    so I'd like to set the Playernamelist for a player but only that some other can see it and not the whole server. Is this possible? (Also for the "below name" scoreboard)
     
  2. Yes, You must create a team, add players in the team.
    Finally you must create a playerlistpacket (I don't know the name). and iterate over every player.
    The

    Code:
    for(Player p : online) {
       Players members = getTeam(p).getMembers();
       packet.addPlayers(members)
    }
    send packet
    You must refine the code, but the concept is correct I think.
     
Thread Status:
Not open for further replies.

Share This Page