Skip to content

Commit

Permalink
Remove namespace param
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal committed Apr 18, 2022
1 parent 2b16496 commit 2017e72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <T> List<LiteralArgumentBuilder<T>> parse(
@NotNull LampBrigadier brigadier,
@NotNull CommandHandler handler,
@Nullable String namespace) {
@NotNull CommandHandler handler
) {
List<LiteralArgumentBuilder<T>> nodes = new ArrayList<>();
List<CommandCategory> roots = handler.getCategories().values().stream().filter(c -> c.getPath().isRoot()).collect(Collectors.toList());
List<ExecutableCommand> rootCommands = handler.getCommands().values().stream().filter(c -> c.getPath().isRoot()).collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2017e72

Please sign in to comment.