From fafb19a7a2ce614d2a30ed05748d4faa611d8637 Mon Sep 17 00:00:00 2001 From: alemidev Date: Wed, 6 Apr 2022 21:30:54 +0200 Subject: [PATCH] added some events? --- src/treepuncher/events/packet.py | 8 ++++++++ src/treepuncher/events/system.py | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/treepuncher/events/packet.py create mode 100644 src/treepuncher/events/system.py diff --git a/src/treepuncher/events/packet.py b/src/treepuncher/events/packet.py new file mode 100644 index 0000000..ecce2d2 --- /dev/null +++ b/src/treepuncher/events/packet.py @@ -0,0 +1,8 @@ +from aiocraft.mc.packet import Packet + +from .base import BaseEvent + +class PacketEvent(BaseEvent): + packet : Packet + def __init__(self, p:Packet): + self.packet = p diff --git a/src/treepuncher/events/system.py b/src/treepuncher/events/system.py new file mode 100644 index 0000000..dcdc6c9 --- /dev/null +++ b/src/treepuncher/events/system.py @@ -0,0 +1,8 @@ +from .base import BaseEvent + + +class ConnectedEvent(BaseEvent): + pass + +class DisconnectedEvent(BaseEvent): + pass