This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
tutorial:commands [2020/11/25 08:20] i509vcb [Catch or throw a CommandSyntaxException] |
tutorial:commands [2021/01/07 11:13] juuz fix misplaced ) in requires example |
||
---|---|---|---|
Line 280: | Line 280: | ||
.requires(source -> source.hasPermissionLevel(4)) | .requires(source -> source.hasPermissionLevel(4)) | ||
.executes(ctx -> { | .executes(ctx -> { | ||
- | ctx.getSource().sendFeedback(new LiteralText("You are an operator", false)); | + | ctx.getSource().sendFeedback(new LiteralText("You are an operator"), false); |
return 1; | return 1; | ||
}); | }); |