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

@@ -130,6 +130,7 @@ public interface MessageHandler {
.orElse(CompletableFuture.completedFuture(Optional.empty()))
.thenAccept(
(teleport) -> Message.builder()
.type(Message.MessageType.RTP_LOCATION)
.target(message.getSender(), Message.TargetType.PLAYER)
.payload(Payload.position(teleport.orElse(null)))
.build().send(getBroker(), null)