Package net.storm.sdk.community
Class Chat
java.lang.Object
net.storm.sdk.community.Chat
Utility class for sending chat messages in the game.
This class provides methods for sending messages through the game's chat system, including public chat and other chat modes.
Messages are sent by invoking the game's chat script directly.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidSends a chat message with full control over chat parameters.static voidsendPublic(String message) Sends a public chat message visible to nearby players.
-
Constructor Details
-
Chat
public Chat()
-
-
Method Details
-
sendPublic
Sends a public chat message visible to nearby players.- Parameters:
message- the message text to send
-
send
Sends a chat message with full control over chat parameters.This method provides low-level access to the chat system, allowing messages to be sent through different channels with various options.
- Parameters:
message- the message text to sendmodes- the chat mode flagsclanType- the clan chat type (0 for non-clan messages)useTarget- whether to send the message to a specific targettarget- the target identifier (-1 if not using a target)
-