How to get player at VehicleCreateEvent

Discussion in 'Plugin Development' started by feaq16, Apr 11, 2013.

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

    feaq16

    Hi,
    How to get player on this event?
    so, If i have (example) onBlockPlace, get player by
    Code:java
    1.  
    2. Player p = (Player) e.getPlayer();
    3.  


    and, How to do it on this event?
     
  2. Offline

    TGF

    Is it even possible? ^^ It's Vehicle Event not Player.

    Maybe somebody else know how but i'm not sure.
     
  3. Offline

    feaq16

    so, What send message to player on minecart place?

    @ref

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  4. Offline

    ferrybig

    a vechiclecreateevent isn't always created by a player, sometimes its created by block (dispenser), so there isn;t a good way to acces the creator
     
Thread Status:
Not open for further replies.

Share This Page