Class GSBansWarningEvent

java.lang.Object
com.gamersafer.minecraft.bans.velocity.event.GSBansEvent
com.gamersafer.minecraft.bans.velocity.event.GSBansWarningEvent

public class GSBansWarningEvent extends GSBansEvent
Fired when a user is warned
  • Constructor Details

    • GSBansWarningEvent

      public GSBansWarningEvent(com.velocitypowered.api.proxy.Player player, UUID uuid, com.velocitypowered.api.command.CommandSource warner)
      Creates a new GSBansWarningEvent
      Parameters:
      player - the warned player
      uuid - the UUID of the warned player
      warner - the sender issuing the warn
  • Method Details

    • getWarner

      public com.velocitypowered.api.command.CommandSource getWarner()
      The CommandSource warning the player.
      Returns:
      the CommandSource performing the action