From 8454b37588bf6ffa797b9ff69ce9902fcd2b802f Mon Sep 17 00:00:00 2001 From: Slimified Date: Mon, 19 Aug 2024 23:21:37 -0700 Subject: [PATCH] Parse colors from broadcast world command --- .../earth2me/essentials/commands/Commandbroadcastworld.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandbroadcastworld.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandbroadcastworld.java index 93c271dca89..6d44ba2ecb5 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandbroadcastworld.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandbroadcastworld.java @@ -3,6 +3,7 @@ import com.earth2me.essentials.CommandSource; import com.earth2me.essentials.User; import com.earth2me.essentials.utils.AdventureUtil; +import com.earth2me.essentials.utils.FormatUtil; import com.google.common.collect.Lists; import net.ess3.api.TranslatableException; import org.bukkit.Server; @@ -53,7 +54,7 @@ private void sendBroadcast(final World world, final String name, final String me if (message.isEmpty()) { throw new NotEnoughArgumentsException(); } - ess.broadcastTl(null, u -> !u.getBase().getWorld().equals(world), true, "broadcast", message, AdventureUtil.parsed(AdventureUtil.legacyToMini(name))); + ess.broadcastTl(null, u -> !u.getBase().getWorld().equals(world), true, "broadcast", FormatUtil.replaceFormat(message).replace("\\n", "\n"), AdventureUtil.parsed(AdventureUtil.legacyToMini(name))); } @Override