function setPlayerName
Note
The name string can't be longer than 18 characters, and must be unique for each player.
This function will set the player unique nickname for all players.
Original: setPlayerName
Declaration
async def setPlayerName(id : int, name : str)
Parameters
int id: the player id.
str instance: the new unique player name.
Returns
bool: true when unique player name was set, otherwise false.
Source code in src/pyg2o/functions/player.py
1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 | |