Class KeyPressEvent

java.lang.Object
org.bukkit.event.Event
nl.sbdeveloper.vehiclesplus.api.events.Event
nl.sbdeveloper.vehiclesplus.api.events.impl.KeyPressEvent

public class KeyPressEvent extends Event
This event gets fired when a supported key is pressed. It listens to W, A, S, D, Space and Shift.
  • Constructor Details

    • KeyPressEvent

      public KeyPressEvent(org.bukkit.entity.Player player, MovementInput input)
      Construct a new KeyPressEvent.
      Parameters:
      player - The Player that pressed the key.
      input - The MovementInput, containing the pressed keys.
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      The Player that pressed the key.
    • getInput

      public MovementInput getInput()
      The MovementInput, containing the pressed keys.