geforkt von Mirrors/Paper
Fix suggest command message for brigadier syntax exceptions
This is a bug accidentally introduced in upstream CB
Dieser Commit ist enthalten in:
Ursprung
19d28ade48
Commit
1158ad3a6a
@ -166,7 +166,7 @@
|
||||
int i = Math.min(commandsyntaxexception.getInput().length(), commandsyntaxexception.getCursor());
|
||||
MutableComponent ichatmutablecomponent = Component.empty().withStyle(ChatFormatting.GRAY).withStyle((chatmodifier) -> {
|
||||
- return chatmodifier.withClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/" + command));
|
||||
+ return chatmodifier.withClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, label)); // CraftBukkit
|
||||
+ return chatmodifier.withClickEvent(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, "/" + label)); // CraftBukkit // Paper
|
||||
});
|
||||
|
||||
if (i > 10) {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren