class ChatPacket:
    def __init__(self, message):
        self.packet = WritePacket(3)
        self.packet.write_string(message)

    def send_to(self, client):
        client.send(self.packet.get_bytes())
class KickPacket:
    def __init__(self, reason):
        self.packet = WritePacket(2)
        self.packet.write_string(reason)

    def send_to(self, client):
        client.send(self.packet.get_bytes())