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