Class GSBansWarningEvent
java.lang.Object
com.gamersafer.minecraft.bans.velocity.event.GSBansEvent
com.gamersafer.minecraft.bans.velocity.event.GSBansWarningEvent
Fired when a user is warned
-
Constructor Summary
ConstructorsConstructorDescriptionGSBansWarningEvent
(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource warner) Creates a newGSBansWarningEvent
-
Method Summary
Modifier and TypeMethodDescriptioncom.velocitypowered.api.command.CommandSource
TheCommandSource
warning the player.Methods inherited from class com.gamersafer.minecraft.bans.velocity.event.GSBansEvent
getPlayer, getUuid
-
Constructor Details
-
GSBansWarningEvent
public GSBansWarningEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource warner) Creates a newGSBansWarningEvent
- Parameters:
player
- the warned playeruuid
- theUUID
of the warned playerwarner
- the sender issuing the warn
-
-
Method Details
-
getWarner
public com.velocitypowered.api.command.CommandSource getWarner()TheCommandSource
warning the player.- Returns:
- the
CommandSource
performing the action
-