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
Fired when a user is (un)muted
-
Constructor Summary
ConstructorsConstructorDescriptionGSAuthMuteEvent(net.md_5.bungee.api.connection.ProxiedPlayer player, UUID uuid, net.md_5.bungee.api.CommandSender muter, boolean nowMuted) Creates a newGSAuthMuteEvent -
Method Summary
Modifier and TypeMethodDescriptionnet.md_5.bungee.api.CommandSendergetMuter()TheCommandSender(un)muting the player.booleanReturns whether the player is now mutedMethods inherited from class com.gamersafer.minecraft.auth.bungeecord.event.GSAuthEvent
getPlayer, getUuidMethods inherited from class net.md_5.bungee.api.plugin.Event
postCall
-
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 newGSAuthMuteEvent- Parameters:
player- the (un)muted playeruuid- theUUIDof the (un)muted playermuter- the sender issuing the (un)mutenowMuted- whether the player is now muted
-
-
Method Details
-
getMuter
public net.md_5.bungee.api.CommandSender getMuter()TheCommandSender(un)muting the player.- Returns:
- the
CommandSenderperforming the action
-
isNowMuted
public boolean isNowMuted()Returns whether the player is now muted- Returns:
- whether the player is now muted
-