How can I get the entity who placed the vehicle on onVehicleCreate

Discussion in 'Plugin Development' started by EvilPeanut, Jan 19, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    EvilPeanut

    Hello,

    How can I get the entity who placed the vehicle on onVehicleCreate?

    Thanks,
    Reece
     
  2. Offline

    gomeow

    You could do something like PlayerInteractEvent, checking if they clicked a rail with a minecart in hand, then placing a reference to the player in a list and then on VehicleCreateEvent checking if they are in that list
     
Thread Status:
Not open for further replies.

Share This Page