making a player sit down

Discussion in 'Plugin Development' started by SoThatsIt, Nov 16, 2012.

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

    SoThatsIt

    hi i am not sure how i would do this but i know its possible

    i was thinking i could use the player.setpassenger() method but i am not sure how i would do that maybe creating a fake entity for the player to ride?

    i was also thinking i could use packets but i have no idea how to do that

    any ideas?
     
  2. Offline

    Malikk

    I remember an old chair plugin that used arrows and set the player as the passenger. That probably still works.
     
  3. Offline

    SoThatsIt

    Cool ill try to see if i could get this to work

    this seems like it will work but it crashes my game when i try it i will keep on trying though

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

    Drkmaster83

    Don't you send a packet? I'm not sure which one, and I don't have experience with packets... but this sounds about right.
     
  5. Offline

    SoThatsIt

    im using arrows and they are seeming to be kinda working except i get disconnected when i destroy the pushball
    sothatsit was caught trying to crash the server with an invalid position.
     
  6. Offline

    Jogy34

    I think I remember someone saying that they set the person as a passenger to themselves to make them sit down
     
  7. Offline

    SoThatsIt

    hmm, ill try that

    that doesnt work really

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 29, 2016
  8. Offline

    lol768

  9. Offline

    Drkmaster83

  10. Offline

    Sehales

    You can send the packet "Attach Entity (0x27)" With the same player as attachement. setPassenger() is using the same way...
     
Thread Status:
Not open for further replies.

Share This Page