onEvent method

void onEvent(
  1. PlayerEvent event
)

Implementation

void onEvent(PlayerEvent event) {
  this.event = event;
}