add: permission
This commit is contained in:
parent
47ff4ad16f
commit
263c9644b3
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ public class Silencer extends JavaPlugin implements Listener {
|
|||
|
||||
private LiteralCommandNode<CommandSourceStack> muteCommand() {
|
||||
return Commands.literal("mute")
|
||||
.requires(sender -> sender.getSender().hasPermission("silencer.mute"))
|
||||
.then(Commands.argument("targets", ArgumentTypes.players())
|
||||
.executes(ctx -> {
|
||||
final PlayerSelectorArgumentResolver targetResolver = ctx.getArgument("targets",
|
||||
|
|
Loading…
Reference in a new issue