Class MuteHandler
java.lang.Object
me.github.simonplays15.betterbansystem.core.mute.MuteHandler
The MuteHandler class provides methods for muting and unmuting players.
-
Constructor Summary
ConstructorsConstructorDescriptionThe MuteHandler class provides methods for muting and unmuting players. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addMute
(@NotNull BaseCommandSender sender, @NotNull String target, String reason, Date expires) Adds a mute for a target player.static IMuteEntry
findMuteEntry
(String playerName) Finds the mute entry for the given player UUID.static IMuteEntry
findMuteEntry
(UUID uuid) This method finds a mute entry based on the provided UUID.static void
removeMute
(String target) Removes the mute for a specified target.
-
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
Removes the mute for a specified target.- Parameters:
target
- the target for whom the mute needs to be removed
-
findMuteEntry
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
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.
-