Class GSAuthMuteEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
com.gamersafer.minecraft.auth.bungeecord.event.GSAuthEvent
com.gamersafer.minecraft.auth.bungeecord.event.GSAuthMuteEvent

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

    Constructors
    Constructor
    Description
    GSAuthMuteEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID uuid, net.md_5.bungee.api.CommandSender muter, boolean nowMuted)
    Creates a new GSAuthMuteEvent
  • Method Summary

    Modifier and Type
    Method
    Description
    net.md_5.bungee.api.CommandSender
    The CommandSender (un)muting the player.
    boolean
    Returns whether the player is now muted

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

    getPlayer, getUuid

    Methods inherited from class net.md_5.bungee.api.plugin.Event

    postCall

    Methods inherited from class java.lang.Object

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

    • GSAuthMuteEvent

      public GSAuthMuteEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID uuid, net.md_5.bungee.api.CommandSender 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 net.md_5.bungee.api.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