mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
fabric: support Minecraft 1.20.6
This commit is contained in:
10 files changed
+109
-58
No files matched your search
@@ -35,12 +35,10 @@ public class RtpCommand extends Command implements UserListTabProvider {
|
||||
|
||||
protected RtpCommand(@NotNull HuskHomes plugin) {
|
||||
super("rtp", List.of(), "[player] [world]", plugin);
|
||||
Map<String, Boolean> map = new HashMap<>();
|
||||
map.put("other", true);
|
||||
plugin.getWorlds().stream()
|
||||
.filter(world -> !plugin.getSettings().getRtp().isWorldRtpRestricted(world))
|
||||
.map(World::getName).toList().forEach(world -> map.put(world, true));
|
||||
addAdditionalPermissions(map);
|
||||
|
||||
addAdditionalPermissions(Map.of(
|
||||
"other", true
|
||||
));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user