๐Ÿ› Register permissions with Bukkit so commands aren't suggested to players without permission when Brigadier is not used

This commit is contained in:
jmp 2020-10-12 13:33:07 -07:00
parent 1bc2af8eed
commit 2fbd90dfee

View file

@ -67,6 +67,9 @@ final class BukkitCommand<C> extends org.bukkit.command.Command implements Plugi
this.command = command; this.command = command;
this.manager = manager; this.manager = manager;
this.cloudCommand = cloudCommand; this.cloudCommand = cloudCommand;
if (this.command.getOwningCommand() != null) {
this.setPermission(this.command.getOwningCommand().getCommandPermission().toString());
}
} }
@Override @Override