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

@@ -346,7 +346,9 @@ public final class Settings {
@Comment({"List of server in which /rtp is allowed. (Only relevant when using cross server mode WITH REDIS)",
"If a server is not defined here the RTP logic has no way of knowing its existence."})
private List<String> randomTargetServers = List.of("server-01", "server-02");
private Map<String, List<String>> randomTargetServers = new HashMap<>(
Map.of("survival_server", List.of("world", "world_nether", "world_the_end"))
);
}
@Comment("Action cooldown settings. Docs: https://william278.net/docs/huskhomes/cooldowns")