Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

Commit

Permalink
fix: command perms having trailing period
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Apr 5, 2024
1 parent fb74f71 commit 3cba74b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,9 @@ public String getUsage() {
@Nullable
public String getPermission(@NotNull String... children) {
return String.join(".",
"huskchat", "command", getName(),
String.join(".", children)
"huskchat", "command",
children.length == 0 ? getName() : getName() +
"." + String.join(".", children)
);
}

Expand Down

0 comments on commit 3cba74b

Please sign in to comment.