Fix wrong edithome and editwarp addtl permissions being registered

This commit is contained in:
William278 committed 2023-03-28 14:00:51 +01:00
1 parent a324633682
commit 2fa959b9d8
2 files changed
+2 -4

No files matched your search

@@ -22,8 +22,7 @@ public class EditHomeCommand extends SavedPositionCommand<Home> {
public EditHomeCommand(@NotNull HuskHomes plugin) {
super("edithome", List.of(), Home.class, List.of("rename", "description", "relocate", "privacy"), plugin);
addAdditionalPermissions(arguments.stream()
.collect(HashMap::new, (m, e) -> m.put(getPermission(e), false), HashMap::putAll));
addAdditionalPermissions(arguments.stream().collect(HashMap::new, (m, e) -> m.put(e, false), HashMap::putAll));
}
@Override
@@ -21,8 +21,7 @@ public class EditWarpCommand extends SavedPositionCommand<Warp> {
public EditWarpCommand(@NotNull HuskHomes plugin) {
super("editwarp", List.of(), Warp.class, List.of("rename", "description", "relocate"), plugin);
setOperatorCommand(true);
addAdditionalPermissions(arguments.stream()
.collect(HashMap::new, (m, e) -> m.put(getPermission(e), false), HashMap::putAll));
addAdditionalPermissions(arguments.stream().collect(HashMap::new, (m, e) -> m.put(e, false), HashMap::putAll));
}
@Override