mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
Tweak permission registration
This commit is contained in:
19 files changed
+84
-253
No files matched your search
@@ -12,15 +12,15 @@ import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.time.ZoneId;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import java.util.*;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
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));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user