Class GSAuthMuteEvent
java.lang.Object
org.bukkit.event.Event
com.gamersafer.minecraft.auth.paper.event.GSAuthEvent
com.gamersafer.minecraft.auth.paper.event.GSAuthMuteEvent
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
ConstructorDescriptionGSAuthMuteEvent
(org.bukkit.entity.Player player, UUID uuid, org.bukkit.command.CommandSender muter, boolean nowMuted) Creates a newGSAuthMuteEvent
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Static getter for the handler listorg.bukkit.event.HandlerList
org.bukkit.command.CommandSender
getMuter()
TheCommandSender
(un)muting the player.boolean
Returns whether the player is now mutedMethods inherited from class com.gamersafer.minecraft.auth.paper.event.GSAuthEvent
getPlayer, getUuid
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
GSAuthMuteEvent
public GSAuthMuteEvent(org.bukkit.entity.Player player, UUID uuid, org.bukkit.command.CommandSender muter, boolean nowMuted) Creates a newGSAuthMuteEvent
- Parameters:
player
- the (un)muted playeruuid
- theUUID
of the (un)muted playermuter
- the sender issuing the (un)mutenowMuted
- whether the player is now muted
-
-
Method Details
-
getMuter
public org.bukkit.command.CommandSender getMuter()TheCommandSender
(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 classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Static getter for the handler list- Returns:
- the handler list
-