Compare commits
2 commits
e151f8617f
...
263c9644b3
Author | SHA1 | Date | |
---|---|---|---|
263c9644b3 | |||
47ff4ad16f |
4 changed files with 4 additions and 3 deletions
2
pom.xml
2
pom.xml
|
@ -6,7 +6,7 @@
|
|||
|
||||
<groupId>dev.hex</groupId>
|
||||
<artifactId>silencer</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>0.0.1</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
name: Silencer
|
||||
version: '1.0'
|
||||
version: '0.0.1'
|
||||
main: dev.hex.silencer.Silencer
|
||||
description: A simple mute plugin.
|
||||
api-version: '1.21.4'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
name: Silencer
|
||||
author: hex
|
||||
main: dev.hex.silencer.Silencer
|
||||
version: 1.0.0
|
||||
version: 0.0.1
|
||||
|
|
Loading…
Reference in a new issue