Class DisconnectPacket

java.lang.Object
net.minestom.server.network.packet.server.play.DisconnectPacket
All Implemented Interfaces:
ComponentHolder<ServerPacket>, ComponentHoldingServerPacket, SendablePacket, ServerPacket, Readable, Writeable

public class DisconnectPacket extends Object implements ComponentHoldingServerPacket
  • Field Details

  • Constructor Details

    • DisconnectPacket

      public DisconnectPacket(@NotNull @NotNull Component message)
      Creates a new disconnect packet with a given message.
      Parameters:
      message - the message
  • Method Details