Package dev.boze.api.client
Class ChatHelper
java.lang.Object
dev.boze.api.client.ChatHelper
A helper for sending messages to the client chat
This only sends messages client-side, it does not send messages to the server!
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Send an error to the chatstatic void
Send an error to the chat with a titlestatic void
Send a message to the chatstatic void
Send a message to the chat with a titlestatic void
sendWarning
(String warning) Send a warning to the chatstatic void
sendWarning
(String title, String warning) Send a warning to the chat with a title
-
Constructor Details
-
ChatHelper
public ChatHelper()
-
-
Method Details
-
sendMsg
Send a message to the chat- Parameters:
message
- The message
-
sendMsg
Send a message to the chat with a titleIt's recommended to use this method when sending messages from a module
- Parameters:
title
- The title of the message/the module namemessage
- The message
-
sendWarning
Send a warning to the chat- Parameters:
warning
- The warning
-
sendWarning
Send a warning to the chat with a titleIt's recommended to use this method when sending warnings from a module
- Parameters:
title
- The title of the warning/the module namewarning
- The warning
-
sendError
Send an error to the chat- Parameters:
error
- The error
-
sendError
Send an error to the chat with a titleIt's recommended to use this method when sending errors from a module
- Parameters:
title
- The title of the error/the module nameerror
- The error
-