Change evens naming semantic

This commit is contained in:
2023-07-16 16:14:00 +03:00
parent a73b14f9b4
commit cd098571d9
3 changed files with 16 additions and 18 deletions

View File

@@ -22,20 +22,18 @@ class EventsSystem:
self.loop = asyncio.get_event_loop()
self.as_tasks = []
self.__events = {
"server_started": [],
"auth_sent_key": [], # Only sync
"auth_ok": [], # Only sync
"player_join": [],
"chat_receive": [],
"server_stopped": [],
"onServerStarted": [],
"onPlayerSentKey": [], # Only sync
"onPlayerAuthenticated": [], # Only sync
"onPlayerJoin": [],
"onChatReceive": [],
"onServerStopped": [],
}
self.__async_events = {
"server_started": [],
"_plugins_start": [],
"_plugins_unload": [],
"player_join": [],
"chat_receive": [],
"server_stopped": []
"onServerStarted": [],
"onPlayerJoin": [],
"onChatReceive": [],
"onServerStopped": []
}
def builtins_hook(self):