mirror of
https://github.com/JonasunderscoreJones/McWebserver.git
synced 2025-10-23 19:39:19 +02:00
Fixed mcweb command
This commit is contained in:
parent
c313040af8
commit
66966c6efe
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ public class McWebCommand {
|
|||
if (MC_SERVER != null) {
|
||||
// get the player name
|
||||
String playerName = Objects.requireNonNull(context.getSource().getPlayer()).getName().getString();
|
||||
MC_SERVER.getCommandManager().executeWithPrefix(MC_SERVER.getCommandSource(), "tellraw " + playerName + " [\"\",\"Token (will only show once): \",\"\\n\",\"[\",{\"text\":\"" + result + "\",\"color\":\"green\",\"clickEvent\":{\"action\":\"copy_to_clipboard\",\"value\":\"\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"Click to Copy to Clipboard\"]}},\"]\"]");
|
||||
MC_SERVER.getCommandManager().executeWithPrefix(MC_SERVER.getCommandSource(), "tellraw " + playerName + " [\"\",\"Token: [\",{\"text\":\"" + result + "\",\"color\":\"green\",\"clickEvent\":{\"action\":\"copy_to_clipboard\",\"value\":\"" + result + "\"},\"hoverEvent\":{\"action\":\"show_text\",\"contents\":[\"Click to Copy to Clipboard\"]}},\"]\"]");
|
||||
return 1;
|
||||
}
|
||||
context.getSource().sendFeedback(() -> Text.of("Failed to create token (Unknown Error)"), false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue