diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java index 269097be07..c148cbd00f 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/GeneralCommands.java @@ -535,7 +535,7 @@ public void registry(Actor actor, Registry registry, @ArgFlag(name = 'p', desc = "Page of results to return", def = "1") int page, - @Arg(desc = "Search query", variable = true) + @Arg(desc = "Search query", variable = true, def = "") List query) { String search = String.join(" ", query); @@ -576,7 +576,8 @@ public Component call() throws Exception { } } List list = new ArrayList<>(results.values()); - return PaginationBox.fromComponents("Search results for '" + search + "'", command, list) + String title = search.isBlank() ? "Registry contents" : "Search results for '" + search + "'"; + return PaginationBox.fromComponents(title, command, list) .create(page); } }