The function is used to get the path of the default world on the server.
Original: getServerWorld
Declaration
async def getServerWorld() -> str
Returns
str: The world path name.
Source code in src/pyg2o/functions/game.py
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180 | async def getServerWorld() -> str:
"""
The function is used to get the path of the default world on the server.
Original: [getServerWorld](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/game/getServerWorld/)
## Declaration
```python
async def getServerWorld() -> str
```
## Returns
`str`: The world path name.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|