mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +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
@@ -43,10 +43,12 @@ public abstract class Node implements Executable {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public String getPermission() {
|
||||
public String getPermission(@NotNull String... child) {
|
||||
return new StringJoiner(".")
|
||||
.add(PERMISSION_PREFIX)
|
||||
.add(getName()).toString();
|
||||
.add(getName())
|
||||
.add(String.join(".", child))
|
||||
.toString();
|
||||
}
|
||||
|
||||
public boolean canPerform(@NotNull CommandUser user) {
|
||||
|
||||
Reference in new issue
Block a user