mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-21 07:59:19 +00:00
Stopped sending of blank messages
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -65,6 +65,9 @@ public class MessageHandler {
|
|||||||
sender,
|
sender,
|
||||||
Placeholder.applyPlaceholders(this.getMessage(key), placeholders)
|
Placeholder.applyPlaceholders(this.getMessage(key), placeholders)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (message.isBlank()) return;
|
||||||
|
|
||||||
final Component component = Adventure.MINI_MESSAGE.deserialize(message);
|
final Component component = Adventure.MINI_MESSAGE.deserialize(message);
|
||||||
sender.spigot().sendMessage(BungeeComponentSerializer.get().serialize(component));
|
sender.spigot().sendMessage(BungeeComponentSerializer.get().serialize(component));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user