docs: Added docs about onPlayer** events
This commit is contained in:
16
docs/defaultEvents/general/onInit.md
Normal file
16
docs/defaultEvents/general/onInit.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# `event` onInit
|
||||
This event is triggered when server successfully starts up.
|
||||
|
||||
Original: [onExit](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-events/general/onInit/)
|
||||
|
||||
## Parameters
|
||||
No parameters.
|
||||
|
||||
## Usage
|
||||
```python
|
||||
import g2o
|
||||
|
||||
@g2o.event('onInit')
|
||||
def onInitEventHandler(**kwargs):
|
||||
print('Called onInit event')
|
||||
```
|
||||
Reference in New Issue
Block a user