✨ Add highlighting to invalid syntax exception
This commit is contained in:
parent
c3d679d5ec
commit
7e09351cf1
2 changed files with 26 additions and 37 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue