Class Packets.Misc
java.lang.Object
me.remigio07.chatplugin.api.common.util.packet.Packets.Misc
- Enclosing class:
- Packets
Deprecated.
Internal use only.
Contains various misc packets.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PacketSerializer
clientDisconnection
(String reason) Deprecated.UseClient.disconnect()
orClientHandler.disconnect(String)
instead.static PacketSerializer
serverInformation
(String server, int onlinePlayers, int vanishedPlayers) Deprecated.Internal use only.
-
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 serveronlinePlayers
- Online players' amountvanishedPlayers
- Vanished players' amount- Returns:
ServerInformation
packet
-
clientDisconnection
Deprecated.UseClient.disconnect()
orClientHandler.disconnect(String)
instead.Makes a client disconnect from the server.- Parameters:
reason
- Disconnection's reason- Returns:
ClientDisconnection
packet
-