tutorial:commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:commands [2020/11/25 08:10] – Mark my rewritten section as CC0 since I own the rights to it. i509vcb | tutorial:commands [2021/01/07 11:13] – fix misplaced ) in requires example juuz | ||
---|---|---|---|
Line 222: | Line 222: | ||
| [[tutorials: | | [[tutorials: | ||
| [[tutorials: | | [[tutorials: | ||
- | | [[tutorials: | + | | [[tutorials: |
| [[tutorials: | | [[tutorials: | ||
| [[tutorials: | | [[tutorials: | ||
- | | [[tutorials: | + | | [[tutorials: |
**TODO:** Sections are being moved to sub categories and will be added to their respective articles as they are migrated. | **TODO:** Sections are being moved to sub categories and will be added to their respective articles as they are migrated. | ||
Line 237: | Line 237: | ||
==== Catch or throw a CommandSyntaxException ==== | ==== Catch or throw a CommandSyntaxException ==== | ||
- | The solution to this issue is to make the run or suggest methods throw a '' | + | The solution to this issue is to make the '' |
==== Issues with generics ==== | ==== Issues with generics ==== | ||
Line 280: | Line 280: | ||
.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; | ||
}); | }); |
tutorial/commands.txt · Last modified: 2024/02/23 14:22 by allen1210