tutorial:commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:commands [2021/03/07 20:27] – modmuss50 | tutorial:commands [2021/03/09 02:05] – [Exceptions] what is "translateable"? solidblock | ||
---|---|---|---|
Line 301: | Line 301: | ||
if(random.nextBoolean()) { // If heads succeed. | if(random.nextBoolean()) { // If heads succeed. | ||
- | ctx.getSource().sendMessage(new | + | ctx.getSource().sendMessage(new |
return Command.SINGLE_SUCCESS; | return Command.SINGLE_SUCCESS; | ||
} | } | ||
- | throw new SimpleCommandExceptionType(new | + | throw new SimpleCommandExceptionType(new |
})); | })); | ||
</ | </ |
tutorial/commands.txt · Last modified: 2024/02/23 14:22 by allen1210