From e70616b877cc7dfab32c942cca14e01d7df76f62 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 9 Jun 2024 11:34:38 +0100 Subject: Tweak formatting of /spark profiler open note --- .../java/me/lucko/spark/common/command/modules/SamplerModule.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'spark-common/src/main/java') diff --git a/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java b/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java index 076dad0..ae8f869 100644 --- a/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java +++ b/spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java @@ -60,6 +60,7 @@ import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeUnit; import java.util.function.Consumer; +import static net.kyori.adventure.text.Component.empty; import static net.kyori.adventure.text.Component.space; import static net.kyori.adventure.text.Component.text; import static net.kyori.adventure.text.format.NamedTextColor.DARK_GRAY; @@ -480,8 +481,9 @@ public class SamplerModule implements CommandModule { ); String cmd = "/" + platform.getPlugin().getCommandName() + " profiler stop"; - resp.broadcastPrefixed(text() - .append(text("(Note: this link is temporary and will expire after a short period of time. " + + resp.broadcast(empty()); + resp.broadcast(text() + .append(text("(NOTE: this link is temporary and will expire after a short period of time. " + "If you need a link to share with other people (e.g. in a bug report), please use ", GRAY)) .append(text() .content(cmd) -- cgit