Skip to content

Commit

Permalink
fix: bind command and perm on Paper, close #737
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Feb 1, 2025
1 parent 0f04429 commit 5721b73
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public class BukkitCommand extends org.bukkit.command.Command {

public BukkitCommand(@NotNull Command command, @NotNull BukkitHuskHomes plugin) {
super(command.getName(), command.getDescription(), command.getUsage(), command.getAliases());
this.setPermission(command.getPermission());

this.command = command;
this.plugin = plugin;
}
Expand Down Expand Up @@ -71,6 +73,7 @@ public void register() {
command.getUsage(),
BukkitCommand.getPermissionDefault(command.isOperatorCommand())
);
this.setPermission(command.getPermission());
final List<Permission> childNodes = command.getAdditionalPermissions()
.entrySet().stream()
.map((entry) -> BukkitCommand.addPermission(
Expand Down

0 comments on commit 5721b73

Please sign in to comment.