9
0
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:
MasterOfTheFish
2022-02-19 21:15:50 -05:00
parent d10afc3df3
commit a3bce9b766
6 changed files with 3 additions and 0 deletions

Binary file not shown.

View File

@@ -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));
} }