It already exists. It is called the Buddy List and I believe you bring it up using Ctrl + B. To add someone to your buddy list, use /ab <username> (I think that is the command for it)
I'm a game developer for other games.
Ping me if you have a query or general question unrelated to this game.