๐ Register permissions with Bukkit so commands aren't suggested to players without permission when Brigadier is not used
This commit is contained in:
parent
1bc2af8eed
commit
2fbd90dfee
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loadingโฆ
Add table
Add a link
Reference in a new issue