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
ConstructorDescriptionGSAuthMuteEvent
(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.CommandSender
getMuter()
TheCommandSender
(un)muting the player.boolean
Returns whether the player is now mutedMethods inherited from class com.gamersafer.minecraft.auth.bungeecord.event.GSAuthEvent
getPlayer, getUuid
Methods 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
- theUUID
of 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
CommandSender
performing the action
-
isNowMuted
public boolean isNowMuted()Returns whether the player is now muted- Returns:
- whether the player is now muted
-