java.lang.Object
me.remigio07.chatplugin.api.common.util.packet.Packets.Misc
Enclosing class:
Packets

@Deprecated public static class Packets.Misc extends Object
Deprecated.
Internal use only.
Contains various misc packets.
  • Constructor Details

    • Misc

      public Misc()
      Deprecated.
  • Method Details

    • serverInformation

      @Deprecated public static PacketSerializer serverInformation(String server, int onlinePlayers, int vanishedPlayers)
      Deprecated.
      Internal use only.
      Carries information about a server's online and vanished players' amount.
      Parameters:
      server - Target server
      onlinePlayers - Online players' amount
      vanishedPlayers - Vanished players' amount
      Returns:
      ServerInformation packet
    • clientDisconnection

      @Deprecated public static PacketSerializer clientDisconnection(String reason)
      Makes a client disconnect from the server.
      Parameters:
      reason - Disconnection's reason
      Returns:
      ClientDisconnection packet