Compare commits

...

2 commits

Author SHA1 Message Date
263c9644b3
add: permission 2025-03-16 10:22:39 +01:00
47ff4ad16f
fix: set version to 0.0.1 (alpha) 2025-03-16 10:22:29 +01:00
4 changed files with 4 additions and 3 deletions

View file

@ -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>

View file

@ -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",

View file

@ -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'

View file

@ -1,4 +1,4 @@
name: Silencer
author: hex
main: dev.hex.silencer.Silencer
version: 1.0.0
version: 0.0.1