Class MuteSender

java.lang.Object
net.flectone.pulse.platform.sender.MuteSender

public class MuteSender extends Object
Sends mute notifications to players when they attempt to chat while muted.

Usage example:

MuteSender muteSender = flectonePulse.get(MuteSender.class);

// Check if player is muted and send notification
if (muteSender.sendIfMuted(player)) {
    // Player is muted, message sent
}
Since:
1.6.0
  • Constructor Details

  • Method Details

    • sendIfMuted

      public boolean sendIfMuted(FEntity entity)
      Checks if a player is muted and sends a mute notification. Only sends messages to players, not other entities.
      Parameters:
      entity - the entity to check
      Returns:
      true if player is muted and notification was sent, false otherwise