From 9ac5a8ef8a3fdf3f3fa8c2aced9211f77962770c Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 22 Apr 2022 18:47:21 +0200 Subject: [PATCH] Fix sends Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/Message.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/Message.java b/src/de/steamwar/bungeecore/Message.java index b253b1d..1f1213f 100644 --- a/src/de/steamwar/bungeecore/Message.java +++ b/src/de/steamwar/bungeecore/Message.java @@ -108,7 +108,7 @@ public class Message { if(type == ChatMessageType.CHAT && !sender.chatShown()) return; - sender.send(prefixed, type, new Message("PLAIN_STRING", onHover), onClick, new Message(message, params)); + sender.send(prefixed, type, onHover != null ? new Message("PLAIN_STRING", onHover) : null, onClick, new Message(message, params)); } public static void broadcast(String message, Object... params) {