Class GSAuthMuteEvent
java.lang.Object
com.gamersafer.minecraft.auth.velocity.event.GSAuthEvent
com.gamersafer.minecraft.auth.velocity.event.GSAuthMuteEvent
Fired when a user is (un)muted
-
Constructor Summary
ConstructorDescriptionGSAuthMuteEvent
(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource muter, boolean nowMuted) Creates a newGSAuthMuteEvent
-
Method Summary
Modifier and TypeMethodDescriptioncom.velocitypowered.api.command.CommandSource
getMuter()
TheCommandSource
(un)muting the player.boolean
Returns whether the player is now mutedMethods inherited from class com.gamersafer.minecraft.auth.velocity.event.GSAuthEvent
getPlayer, getUuid
-
Constructor Details
-
GSAuthMuteEvent
public GSAuthMuteEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource 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 com.velocitypowered.api.command.CommandSource getMuter()TheCommandSource
(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
-