aboutsummaryrefslogtreecommitdiff
path: root/spark-common/src
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2024-06-09 11:34:38 +0100
committerLuck <git@lucko.me>2024-06-09 11:34:38 +0100
commite70616b877cc7dfab32c942cca14e01d7df76f62 (patch)
tree4f708b4b055efd2952b2c52734d89230b2ee4dee /spark-common/src
parent26b83dd31eb75ca005b7297bcae099c8f80b7fd7 (diff)
downloadspark-e70616b877cc7dfab32c942cca14e01d7df76f62.tar.gz
spark-e70616b877cc7dfab32c942cca14e01d7df76f62.tar.bz2
spark-e70616b877cc7dfab32c942cca14e01d7df76f62.zip
Tweak formatting of /spark profiler open note
Diffstat (limited to 'spark-common/src')
-rw-r--r--spark-common/src/main/java/me/lucko/spark/common/command/modules/SamplerModule.java6
1 files changed, 4 insertions, 2 deletions
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)