This function will get the player world.
Original: getPlayerWorld
Declaration
async def getPlayerWorld(id : int) -> str
Parameters
int id: the player id.
Returns
str: the player world.
Source code in src/pyg2o/functions/player.py
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995 | async def getPlayerWorld(id : int) -> str:
"""
This function will get the player world.
Original: [getPlayerWorld](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerWorld/)
## Declaration
```python
async def getPlayerWorld(id : int) -> str
```
## Parameters
`int` **id**: the player id.
## Returns
`str`: the player world.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|