Add highlighting to invalid syntax exception

This commit is contained in:
jmp 2020-10-09 16:26:41 -07:00 committed by Alexander Söderberg
parent c3d679d5ec
commit 7e09351cf1
2 changed files with 26 additions and 37 deletions

View file

@ -196,13 +196,11 @@ public final class ExamplePlugin extends JavaPlugin {
.withNoPermissionHandler()
.withArgumentParsingHandler()
.withDecorator(
component -> Component.text().append(
Component.text("[", NamedTextColor.DARK_GRAY)
).append(
Component.text("Example", NamedTextColor.GOLD)
).append(
Component.text("] ", NamedTextColor.DARK_GRAY)
).append(component).build()
component -> Component.text()
.append(Component.text("[", NamedTextColor.DARK_GRAY))
.append(Component.text("Example", NamedTextColor.GOLD))
.append(Component.text("] ", NamedTextColor.DARK_GRAY))
.append(component).build()
).apply(manager, bukkitAudiences::sender);
//
// Create the commands