mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Fix wrong edithome and editwarp addtl permissions being registered
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user