Class GSBansMuteEvent

java.lang.Object
org.bukkit.event.Event
com.gamersafer.minecraft.bans.paper.event.GSBansEvent
com.gamersafer.minecraft.bans.paper.event.GSBansMuteEvent

public class GSBansMuteEvent extends GSBansEvent
Fired when a user is (un)muted
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    GSBansMuteEvent(org.bukkit.entity.Player player, UUID uuid, org.bukkit.command.CommandSender muter, boolean nowMuted)
    Creates a new GSBansMuteEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.bukkit.event.HandlerList
    Static getter for the handler list
    org.bukkit.event.HandlerList
     
    org.bukkit.command.CommandSender
    The CommandSender (un)muting the player.
    boolean
    Returns whether the player is now muted

    Methods inherited from class com.gamersafer.minecraft.bans.paper.event.GSBansEvent

    getPlayer, getUuid

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

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

    • GSBansMuteEvent

      public GSBansMuteEvent(org.bukkit.entity.Player player, UUID uuid, org.bukkit.command.CommandSender muter, boolean nowMuted)
      Creates a new GSBansMuteEvent
      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 org.bukkit.command.CommandSender getMuter()
      The CommandSender (un)muting the player.
      Returns:
      the CommandSender performing the action
    • isNowMuted

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

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Static getter for the handler list
      Returns:
      the handler list