Add documentation to custom Plex events + config

This commit is contained in:
Taahh
2022-02-07 09:07:48 -08:00
committed by GitHub
parent 917775e7e7
commit bd8c772228
9 changed files with 100 additions and 4 deletions

View File

@ -5,16 +5,25 @@ import lombok.Getter;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
//TODO: Event doesn't look like it is called
/**
* Event that is called when a player is frozen or unfrozen
*/
@Getter
public class PunishedPlayerMuteEvent extends PunishedPlayerEvent implements Cancellable
{
private static final HandlerList handlers = new HandlerList();
/**
* Status of the Punished Player being frozen before the event's occurrence.
* New muted state of the player
*/
private final boolean muted;
/**
* Creates a new event instance
* @param punishedPlayer The player who was punished
* @param muted The new muted status
*/
public PunishedPlayerMuteEvent(PunishedPlayer punishedPlayer, boolean muted)
{
super(punishedPlayer);