fabric: support Minecraft 1.20.6

This commit is contained in:
William committed 2024-05-29 23:50:03 +01:00
1 parent cca1951a7c
commit 9b323198ac
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