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 d683ef7 commit 0dea7edCopy full SHA for 0dea7ed
src/main/java/org/spongepowered/api/command/Command.java
@@ -210,7 +210,10 @@ interface Raw extends Command {
210
* @return The tree.
211
*/
212
default CommandTreeNode.Root commandTree() {
213
- return CommandTreeNode.root().executable().child("arguments",
+ return CommandTreeNode.root()
214
+ .executable()
215
+ .requires(this::canExecute)
216
+ .child("arguments",
217
CommandTreeNodeTypes.STRING.get().createNode().greedy().executable().customCompletions());
218
}
219
0 commit comments