diff --git a/brigadier/src/main/java/revxrsal/commands/brigadier/BrigadierTreeParser.java b/brigadier/src/main/java/revxrsal/commands/brigadier/BrigadierTreeParser.java index 52e15fec..3ad71472 100644 --- a/brigadier/src/main/java/revxrsal/commands/brigadier/BrigadierTreeParser.java +++ b/brigadier/src/main/java/revxrsal/commands/brigadier/BrigadierTreeParser.java @@ -69,13 +69,12 @@ public final class BrigadierTreeParser { * * @param brigadier The platform's Brigadier implementation * @param handler The command handler - * @param namespace An optional namespace to register beside standard registration * @return All root nodes */ public static List> parse( @NotNull LampBrigadier brigadier, - @NotNull CommandHandler handler, - @Nullable String namespace) { + @NotNull CommandHandler handler + ) { List> nodes = new ArrayList<>(); List roots = handler.getCategories().values().stream().filter(c -> c.getPath().isRoot()).collect(Collectors.toList()); List rootCommands = handler.getCommands().values().stream().filter(c -> c.getPath().isRoot()).collect(Collectors.toList()); diff --git a/bukkit/src/main/java/revxrsal/commands/bukkit/core/BukkitHandler.java b/bukkit/src/main/java/revxrsal/commands/bukkit/core/BukkitHandler.java index bd5fe4fc..1f16bf21 100644 --- a/bukkit/src/main/java/revxrsal/commands/bukkit/core/BukkitHandler.java +++ b/bukkit/src/main/java/revxrsal/commands/bukkit/core/BukkitHandler.java @@ -136,7 +136,7 @@ public BukkitHandler(@NotNull Plugin plugin) { @Override public BukkitCommandHandler registerBrigadier() { brigadier.get().ifPresent(brigadier -> BrigadierTreeParser - .parse(brigadier, this, null/*plugin.getName().toLowerCase()*/) + .parse(brigadier, this) .forEach(brigadier::register)); return this; }