Class OnCoopServerMessageEvent

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

public abstract class OnCoopServerMessageEvent extends Event
Triggered when the player receives a server message during a cooperative game.
  • Constructor Details

    • OnCoopServerMessageEvent

      public OnCoopServerMessageEvent()
  • 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(String messageType, String playerNick, String steamId)
      Called Event Handling Method
      Parameters:
      messageType - The type of message received from the server. Can be either `ping`, `pong`, `steam-id`, or `server-address`.
      playerNick - The nick of the player who's sending the message.
      steamId - The Steam identifier of the player who's sending the message.