docs: Added missing arg type in addEvent function

This commit is contained in:
AURUMVORXX
2024-11-04 12:58:25 +03:00
parent 5dc063fff1
commit 578de93398

View File

@@ -32,7 +32,7 @@ def callEvent(evtName : str, **kwargs : dict):
for event in eventList[evtName]: for event in eventList[evtName]:
event['function'](**kwargs) event['function'](**kwargs)
def addEvent(name): def addEvent(name : str):
""" """
This function will register a new event with specified name. This function will register a new event with specified name.
Events can be used to notify function(s) when something will happen, like player joins the server, etc. Events can be used to notify function(s) when something will happen, like player joins the server, etc.