mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 22:17:17 +00:00
fix: bind command and perm on Paper, close #737
This commit is contained in:
1 file changed
+3
@@ -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;
|
||||
}
|
||||
@@ -71,6 +73,7 @@ public class BukkitCommand extends org.bukkit.command.Command {
|
||||
command.getUsage(),
|
||||
BukkitCommand.getPermissionDefault(command.isOperatorCommand())
|
||||
);
|
||||
this.setPermission(command.getPermission());
|
||||
final List<Permission> childNodes = command.getAdditionalPermissions()
|
||||
.entrySet().stream()
|
||||
.map((entry) -> BukkitCommand.addPermission(
|
||||
|
||||
Reference in new issue
Block a user