Skip to content

Commit 1323b1b

Browse files
committed
Merge branch 'api-12' into api-13
2 parents 50afa66 + 0dea7ed commit 1323b1b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/org/spongepowered/api/command/Command.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ interface Raw extends Command {
210210
* @return The tree.
211211
*/
212212
default CommandTreeNode.Root commandTree() {
213-
return CommandTreeNode.root().executable().child("arguments",
213+
return CommandTreeNode.root()
214+
.executable()
215+
.requires(this::canExecute)
216+
.child("arguments",
214217
CommandTreeNodeTypes.STRING.get().createNode().greedy().executable().customCompletions());
215218
}
216219

0 commit comments

Comments
 (0)