Skip to content

Commit c61d8f6

Browse files
committed
Merge branch 'api-13' into api-14
2 parents a490075 + 1323b1b commit c61d8f6

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
@@ -212,7 +212,10 @@ interface Raw extends Command {
212212
* @return The tree.
213213
*/
214214
default CommandTreeNode.Root commandTree(RegistryHolder registryHolder) {
215-
return CommandTreeNode.root().executable().child("arguments",
215+
return CommandTreeNode.root()
216+
.executable()
217+
.requires(this::canExecute)
218+
.child("arguments",
216219
CommandTreeNodeTypes.STRING.get(registryHolder).createNode().greedy().executable().customCompletions());
217220
}
218221

0 commit comments

Comments
 (0)