Hey! I try to find a script that change your nickname to RP name after your connect. Any ideas?
As far as I know, you can’t edit your name during runtime, especially from serverside.
But you could add a command such as /register name
and it would use the parameter name
every time you need to display the RP name from a player ID.
Example :
Player Alpha connects to the server (ID : 2) /register Alpha_Male => Trigger an event : get the player ID + name he wrote, add it in your list /me test Alpha_Male test. => Display the name stored in the new list and not the player name
This means you need to store the name
parameter in an array or a dictionnary with the respective player ID.
In the global player list, the player username would still be Alpha
, but when you need to display the RP name, you fetch it from the array/list/dictionnary you created.
Where exactly would you set up this command? Is there some form of prompt?