feat: Improve /rtp with world+server args, fix x-server /rtp (#719)

* feat: enhance /rtp command with flexible world and server options, and fix cross-server compatibility

* I'm not sure about the permission.

* Revert "I'm not sure about the permission."

This reverts commit c11942d0187690bf46dbcd21f2f6242f929f928b.

* revert accident reformat.

* change from review request
This commit is contained in:
Sinon authored and GitHub committed 2024-11-12 20:32:52 +00:00
1 parent 419f1e2f08
commit 3705b3288d
5 files changed
+136 -56

No files matched your search

+17 -5
View File
@@ -322,21 +322,33 @@ This is a table of HuskHomes commands, how to use them, and their required permi
<!-- /rtp command -->
<tr><th colspan="5">Random teleport command</th></tr>
<tr>
<td rowspan="3"><code>/rtp</code></td>
<td rowspan="5"><code>/rtp</code></td>
<td><code>/rtp</code></td>
<td>Teleport randomly into the wild</td>
<td>Teleport randomly into the wild in the current world</td>
<td><code>huskhomes.command.rtp</code></td>
<td align="center">✅</td>
</tr>
<tr>
<td><code>/rtp &lt;player&gt;</code></td>
<td>Teleport another user randomly into the wild</td>
<td>Teleport another player randomly into the wild</td>
<td><code>huskhomes.command.rtp.other</code></td>
<td align="center">❌</td>
</tr>
<tr>
<td><code>/rtp &lt;player&gt; &lt;world&gt;</code></td>
<td>Teleport randomly in a specific world</td>
<td><code>/rtp &lt;world&gt;</code></td>
<td>Teleport randomly in a specified world</td>
<td><code>huskhomes.command.rtp.world</code></td>
<td align="center">❌</td>
</tr>
<tr>
<td><code>/rtp &lt;world&gt; &lt;server&gt;</code></td>
<td>Teleport randomly in a specified world on a specified server</td>
<td><code>huskhomes.command.rtp.world</code></td>
<td align="center">❌</td>
</tr>
<tr>
<td><code>/rtp &lt;server&gt;</code></td>
<td>Teleport randomly in the current world on a specified server</td>
<td><code>huskhomes.command.rtp.world</code></td>
<td align="center">❌</td>
</tr>