Once the behavior pack is imported, players can use the "/playernames" command to change overhead player names to red, green, yellow, or blue by typing "/playernames <color>" in the chat. In the code you may have to input a players name that you want to have access to the command.