mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
feat: Add the option to random teleport cross-server (#647)
* feat: Cross-Server RTP * feat: Cross-Server RTP * feat: Cross-Server RTP * docs * fix req changes * amend for api whoops
This commit is contained in:
1 parent
dac1b9f981
commit
af3a691976
13 files changed
+296
-15
No files matched your search
@@ -340,6 +340,13 @@ public final class Settings {
|
||||
.map(n -> n.startsWith("minecraft:") ? n.substring(10) : n)
|
||||
.anyMatch(n -> n.equalsIgnoreCase(filteredName));
|
||||
}
|
||||
|
||||
@Comment("Whether or not RTP should perform cross-server.")
|
||||
private boolean crossServer = false;
|
||||
|
||||
@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");
|
||||
}
|
||||
|
||||
@Comment("Action cooldown settings. Docs: https://william278.net/docs/huskhomes/cooldowns")
|
||||
|
||||
Reference in new issue
Block a user