Class GSAuthMuteEvent

java.lang.Object
com.gamersafer.minecraft.auth.velocity.event.GSAuthEvent
com.gamersafer.minecraft.auth.velocity.event.GSAuthMuteEvent

public class GSAuthMuteEvent extends GSAuthEvent
Fired when a user is (un)muted
  • Constructor Summary

    Constructors
    Constructor
    Description
    GSAuthMuteEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource muter, boolean nowMuted)
    Creates a new GSAuthMuteEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    com.velocitypowered.api.command.CommandSource
    The CommandSource (un)muting the player.
    boolean
    Returns whether the player is now muted

    Methods inherited from class com.gamersafer.minecraft.auth.velocity.event.GSAuthEvent

    getPlayer, getUuid

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GSAuthMuteEvent

      public GSAuthMuteEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource muter, boolean nowMuted)
      Creates a new GSAuthMuteEvent
      Parameters:
      player - the (un)muted player
      uuid - the UUID of the (un)muted player
      muter - the sender issuing the (un)mute
      nowMuted - whether the player is now muted
  • Method Details

    • getMuter

      public com.velocitypowered.api.command.CommandSource getMuter()
      The CommandSource (un)muting the player.
      Returns:
      the CommandSource performing the action
    • isNowMuted

      public boolean isNowMuted()
      Returns whether the player is now muted
      Returns:
      whether the player is now muted