Make the generated help menu a little prettier and add command insertions

This commit is contained in:
Alexander Söderberg 2020-09-22 15:52:32 +02:00
parent 78144c1c16
commit 146bbc2db3
No known key found for this signature in database
GPG key ID: C0207FF7EA146678
3 changed files with 44 additions and 15 deletions

View file

@ -98,6 +98,12 @@
<groupId>net.kyori</groupId>
<artifactId>adventure-platform-bukkit</artifactId>
<version>4.0.0-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>4.0.0-SNAPSHOT</groupId>
<artifactId>adventure-platform-viaversion</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

View file

@ -84,7 +84,9 @@ public final class BukkitTest extends JavaPlugin {
);
final BukkitAudiences bukkitAudiences = BukkitAudiences.create(this);
final MinecraftHelp<CommandSender> minecraftHelp = new MinecraftHelp<>(bukkitAudiences::audience, mgr);
final MinecraftHelp<CommandSender> minecraftHelp = new MinecraftHelp<>("/cloud help",
bukkitAudiences::audience,
mgr);
try {
((PaperCommandManager<CommandSender>) mgr).registerBrigadier();