mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-01 22:16:08 +00:00
More command refactoring work
This commit is contained in:
1 parent
4ad77a53c1
commit
9ca141a58f
10 files changed
+116
-395
No files matched your search
@@ -27,7 +27,7 @@ public abstract class SavedPositionCommand<T extends SavedPosition> extends Comm
|
||||
|
||||
@NotNull
|
||||
public String getOtherPermission() {
|
||||
return (positionType == Home.class ? super.getPermission() + ".other" : super.getPermission());
|
||||
return (positionType == Home.class ? super.getPermission("other") : super.getPermission());
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@@ -120,7 +120,7 @@ public abstract class SavedPositionCommand<T extends SavedPosition> extends Comm
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private static List<String> reduceHomeList(@NotNull Map<String, List<String>> cachedMap) {
|
||||
protected static List<String> reduceHomeList(@NotNull Map<String, List<String>> cachedMap) {
|
||||
final List<String> homeNames = new ArrayList<>();
|
||||
cachedMap.forEach((key, value) -> value.forEach(home -> homeNames.add(key + "." + home)));
|
||||
return homeNames;
|
||||
|
||||
Reference in new issue
Block a user