Message Builder
A builder class for creating and sending messages with various types, including chat, action bars, titles, and boss bars.
This class allows for building complex messages with conditional filters, chat messages, success/error messages, action bar messages, titles, and even broadcasting messages to all players. You can customize the message's format, apply color, and use placeholders to dynamically replace parts of the message.
Properties
Functions
Adds a custom text to the message.
Adds a custom TextComponent to the message.
Sends a broadcast action bar message to all online players.
Sends a broadcast boss bar message to all online players.
Sends a broadcast error message to all online players.
Sends a broadcast success message to all online players.
Adds a filter to only apply the message to players who meet the condition specified in the predicate.
Adds a filter to only apply the message to a player with the specified game mode.
Adds a filter to only apply the message to players with the specified permission.
Adds a filter to only apply the message to players who have all specified permissions.
Adds a filter to only apply the message to a player in the specified world.
Adds a filter to only apply the message to a player with the specified name.
Replaces placeholders in the message with corresponding values from the arguments.
Replaces placeholders in the message with corresponding values from the map.
Sets the target of the message to a specific sender (could be player or console).
Sets the target of the message to a specific player.