Leash on other player

Discussion in 'Plugin Development' started by PovilasC, Jan 4, 2016.

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

    PovilasC

    Hello all,
    I am new in plugins development. I want to make something like handcuffs - add leash on player and bring him to jail. I saw this on one server, and its not with teleporting (because if player has antiknockback it wouldn't drag), so I think is possible. Is there any way to add leash on player? Thanks for replies.
     
  2. Offline

    Zombie_Striker

  3. Offline

    PovilasC

  4. Offline

    MoeMix

    PovilasC likes this.
  5. Offline

    Zombie_Striker

    Read it, it does. Since this is the case, you should do this :
    1. Create an invisible mob.
    2. Set the leash holder for that mob to be another player.
    3. Teleport the player to that mobs location.
     
    zThana and MasterDoctor like this.
  6. Offline

    MasterDoctor

    I was about to suggest this
     
  7. Offline

    MoeMix

    Ah... I knew you would need some sort of NMS code to go with this.
     
  8. Offline

    PovilasC

    but theres need to be other way. on my described server, if player has anti-knockback cheat on, he can stand still even if leaded, and draging player with leash is smooth, like any other animal
     
Thread Status:
Not open for further replies.

Share This Page