docs: Fix for function name in usage example of onPlayerDisconnect event
This commit is contained in:
@@ -13,6 +13,6 @@ Original: [onPlayerDisconnect](https://gothicmultiplayerteam.gitlab.io/docs/0.3.
|
||||
import g2o
|
||||
|
||||
@g2o.event('onPlayerDisconnect')
|
||||
def onChangeDC(**kwargs):
|
||||
def onDC(**kwargs):
|
||||
print(f'Player {kwargs['playerid']} has left from the server')
|
||||
```
|
||||
Reference in New Issue
Block a user