Class GSBansMuteEvent
java.lang.Object
com.gamersafer.minecraft.bans.velocity.event.GSBansEvent
com.gamersafer.minecraft.bans.velocity.event.GSBansMuteEvent
Fired when a user is (un)muted
-
Constructor Summary
ConstructorsConstructorDescriptionGSBansMuteEvent
(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource muter, boolean nowMuted) Creates a newGSBansMuteEvent
-
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.bans.velocity.event.GSBansEvent
getPlayer, getUuid
-
Constructor Details
-
GSBansMuteEvent
public GSBansMuteEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource muter, boolean nowMuted) Creates a newGSBansMuteEvent
- 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
-