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.
2 parents 50afa66 + 0dea7ed commit 1323b1bCopy full SHA for 1323b1b
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