From d873e4bebe166e8a47f058a19d7b12984ca683c1 Mon Sep 17 00:00:00 2001 From: Altruiis <71913030+Altruiis@users.noreply.github.com> Date: Wed, 16 Feb 2022 16:19:25 -0800 Subject: [PATCH] Don't send empty messages --- src/main/java/tsp/headdb/util/Utils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/tsp/headdb/util/Utils.java b/src/main/java/tsp/headdb/util/Utils.java index cea3e34..ca26eac 100644 --- a/src/main/java/tsp/headdb/util/Utils.java +++ b/src/main/java/tsp/headdb/util/Utils.java @@ -37,7 +37,9 @@ public class Utils { } public static void sendMessage(CommandSender sender, String message) { - sender.sendMessage(colorize(message)); + if (!message.isEmpty()) { + sender.sendMessage(colorize(message)); + } } public static String colorize(String string) {