diff --git a/spigot/src/main/java/io/tofpu/speedbridge2/model/common/util/BridgeUtil.java b/spigot/src/main/java/io/tofpu/speedbridge2/model/common/util/BridgeUtil.java index 1bdef7e1..b6566ee3 100644 --- a/spigot/src/main/java/io/tofpu/speedbridge2/model/common/util/BridgeUtil.java +++ b/spigot/src/main/java/io/tofpu/speedbridge2/model/common/util/BridgeUtil.java @@ -109,9 +109,7 @@ public static Component sendMessage(final CommonBridgePlayer sender, if (content.isEmpty()) { return null; } - final Component component = translateMiniMessage(content); - sendMessage(sender.getPlayer(), component); - return component; + return sendMessage(sender.getPlayer(), content); } /** @@ -130,8 +128,9 @@ public static Component sendMessage(final CommandSender sender, String content) if (sender instanceof Player) { content = replaceWithPAPI((Player) sender, content); } - + final Component component = translateMiniMessage(content); + sendMessage(sender, component); return component; }