Package com.petarmc.lib.chat
Class PlayerChatSender
java.lang.Object
com.petarmc.lib.chat.PlayerChatSender
Utility class for sending chat messages from the client to the server.
This sends messages as if the player typed them (so they are visible to the server and other players).
Use from client-only code (GUIs, keybind handlers, etc.).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
MAX_MESSAGE_LENGTH
private static final int MAX_MESSAGE_LENGTH- See Also:
-
-
Constructor Details
-
PlayerChatSender
private PlayerChatSender()
-
-
Method Details
-
send
Send a single chat message from the player to the server. Returns true if the send was attempted, false if aborted.
-