added some events?
This commit is contained in:
parent
a5169f40cc
commit
fafb19a7a2
2 changed files with 16 additions and 0 deletions
8
src/treepuncher/events/packet.py
Normal file
8
src/treepuncher/events/packet.py
Normal file
|
@ -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
|
8
src/treepuncher/events/system.py
Normal file
8
src/treepuncher/events/system.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from .base import BaseEvent
|
||||
|
||||
|
||||
class ConnectedEvent(BaseEvent):
|
||||
pass
|
||||
|
||||
class DisconnectedEvent(BaseEvent):
|
||||
pass
|
Loading…
Reference in a new issue