Class OnPlayerBanEvent

java.lang.Object
com.avrix.events.Event
com.avrix.events.OnPlayerBanEvent

public abstract class OnPlayerBanEvent extends Event
Triggered when the player ban command is called.
  • Constructor Details

    • OnPlayerBanEvent

      public OnPlayerBanEvent()
  • Method Details

    • getEventName

      public String getEventName()
      Getting the event name
      Specified by:
      getEventName in class Event
      Returns:
      name of the event being implemented
    • handleEvent

      public abstract void handleEvent(zombie.core.raknet.UdpConnection connection, String adminName, String reason)
      Called Event Handling Method
      Parameters:
      connection - Connecting a player who has been banned.
      adminName - Nickname of the administrator who banned the player
      reason - Reason for blocking the player.