java.lang.Object
me.github.simonplays15.betterbansystem.core.mute.MuteHandler

public class MuteHandler extends Object
The MuteHandler class provides methods for muting and unmuting players.
  • Constructor Details

    • MuteHandler

      public MuteHandler()
      The MuteHandler class provides methods for muting and unmuting players.
  • Method Details

    • addMute

      public static void addMute (@NotNull @NotNull BaseCommandSender sender, @NotNull @NotNull String target, String reason, Date expires)
      Adds a mute for a target player.
      Parameters:
      sender - The command sender.
      target - The name of the target player.
      reason - The reason for the mute.
      expires - The expiration date of the mute.
    • removeMute

      public static void removeMute (String target)
      Removes the mute for a specified target.
      Parameters:
      target - the target for whom the mute needs to be removed
    • findMuteEntry

      public static IMuteEntry findMuteEntry (UUID uuid)
      This method finds a mute entry based on the provided UUID.
      Parameters:
      uuid - The UUID of the player for which to find the mute entry.
      Returns:
      The mute entry found for the given UUID.
    • findMuteEntry

      public static IMuteEntry findMuteEntry (String playerName)
      Finds the mute entry for the given player UUID.
      Parameters:
      playerName - The player name.
      Returns:
      The mute entry corresponding to the player UUID, or null if no mute entry is found.