ru:tutorial:commands:requirements
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ru:tutorial:commands:requirements [2022/03/03 11:55] – created furnygo | ru:tutorial:commands:requirements [2022/03/03 12:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Условия ===== | + | ====== Условия |
- | **Статья в разработке** | + | **Примечание: |
Допустим, | Допустим, | ||
Line 11: | Line 11: | ||
.requires(source -> source.hasPermissionLevel(4)) | .requires(source -> source.hasPermissionLevel(4)) | ||
.executes(ctx -> { | .executes(ctx -> { | ||
- | ctx.getSource().sendFeedback(new LiteralText(" | + | ctx.getSource().sendFeedback(new LiteralText(" |
return 1; | return 1; | ||
}); | }); |
ru/tutorial/commands/requirements.1646308541.txt.gz · Last modified: 2022/03/03 11:55 by furnygo