/** * Permanently mute a player * * @param name - Name of player to mute * @param mutedBy - Who the mute is by, can be anything * @param reason - Why they are muted */ public static void mute(String name, String mutedBy, String reason) { plugin.addPlayerMute(name, mutedBy, reason); }
/** * Temporarily mute a player * * @param name - Name of player to mute * @param mutedBy - Who the mute is by, can be anything * @param reason - Why they are muted * @param expires - Unix Timestamp stating the time of when the ban ends */ public static void tempMute(String name, String mutedBy, String reason, long expires) { plugin.addPlayerMute(name, mutedBy, reason, expires); }