We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf3ec3 commit 2d739c4Copy full SHA for 2d739c4
src/main/java/me/despical/commandframework/CompleterHelper.java
@@ -65,6 +65,21 @@ public List<String> playerNames() {
65
.toList();
66
}
67
68
+ /**
69
+ * Returns an empty, immutable list of strings.
70
+ * <p>
71
+ * This method is commonly used to terminate tab completion suggestions,
72
+ * indicating that no matches or further arguments are available for the
73
+ * current context.
74
+ *
75
+ * @return An empty, immutable list. Never returns null.
76
+ */
77
+ @NotNull
78
+ @Contract(pure = true)
79
+ public List<String> empty() {
80
+ return List.of();
81
+ }
82
+
83
/**
84
* Filters a collection of strings based on the argument at the specified index.
85
* <p>
0 commit comments