Skip to content

Commit

Permalink
Tweak formatting of /spark profiler open note
Browse files Browse the repository at this point in the history
  • Loading branch information
lucko committed Jun 9, 2024
1 parent 26b83dd commit e70616b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
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;
Expand Down Expand Up @@ -480,8 +481,9 @@ private void handleOpen(SparkPlatform platform, BytesocksClient bytesocksClient,
);

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)
Expand Down

0 comments on commit e70616b

Please sign in to comment.