diff --git a/server/src/main/java/dev/plex/command/impl/MobLimitCMD.java b/server/src/main/java/dev/plex/command/impl/MobLimitCMD.java index 66bbfe6..70dfcaa 100644 --- a/server/src/main/java/dev/plex/command/impl/MobLimitCMD.java +++ b/server/src/main/java/dev/plex/command/impl/MobLimitCMD.java @@ -18,7 +18,7 @@ import java.util.Arrays; import java.util.Collections; import java.util.List; -@CommandParameters(name = "moblimit", usage = "/ [on/off/setmax ]", aliases = "entitylimit", description = "Manages the mob limit per chunk.") +@CommandParameters(name = "moblimit", usage = "/ [on | off | setmax ]", aliases = "entitylimit", description = "Manages the mob limit per chunk.") @CommandPermissions(permission = "plex.moblimit", source = RequiredCommandSource.ANY) public class MobLimitCMD extends PlexCommand { diff --git a/server/src/main/java/dev/plex/command/impl/TempmuteCMD.java b/server/src/main/java/dev/plex/command/impl/TempmuteCMD.java new file mode 100644 index 0000000..12004c8 --- /dev/null +++ b/server/src/main/java/dev/plex/command/impl/TempmuteCMD.java @@ -0,0 +1,92 @@ +package dev.plex.command.impl; + +import com.google.common.collect.ImmutableList; +import dev.plex.command.PlexCommand; +import dev.plex.command.annotation.CommandParameters; +import dev.plex.command.annotation.CommandPermissions; +import dev.plex.player.PlexPlayer; +import dev.plex.punishment.Punishment; +import dev.plex.punishment.PunishmentType; +import dev.plex.util.PlexUtils; +import dev.plex.util.TimeUtils; // Import your TimeUtils +import net.kyori.adventure.text.Component; +import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import java.time.ZonedDateTime; +import java.util.Arrays; +import java.util.List; + +@CommandParameters(name = "tempmute", description = "Temporarily mute a player on the server", + usage = "/