Skip to content

Commit

Permalink
Revert "Minor modification in docs/commandfailures"
Browse files Browse the repository at this point in the history
This reverts commit ea35f9c.
  • Loading branch information
DerEchtePilz committed Apr 10, 2024
1 parent a3236cb commit 22f965c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/9.3.0/commandfailures.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ <h1 id="handling-command-failures"><a class="header" href="#handling-command-fai
<p>Sometimes, you want your command to fail on purpose. This is the way to &quot;gracefully&quot; handle errors in your command execution. This is performed by throwing any of the following methods:</p>
<pre><code class="language-java">throw CommandAPI.failWithString(String message);
throw CommandAPI.failWithMessage(Message message);
throw CommandAPIBukkit.failWithBaseComponents(BaseComponent... message);
throw CommandAPIBukkit.failWithAdventureComponent(Component message);
throw CommandAPI.failWithBaseComponents(BaseComponent... message);
throw CommandAPI.failWithAdventureComponent(Component message);
</code></pre>
<p>When the CommandAPI handles the fail method, it will cause the command to return a <em>success value</em> of 0, to indicate failure.</p>
<div class="example">
Expand Down

0 comments on commit 22f965c

Please sign in to comment.