Player ride player

Discussion in 'Plugin Development' started by CraftRay, Jul 25, 2016.

Thread Status:
Not open for further replies.
  1. Hi, i have server in 1.10 and i would like write plugin "Player ride player".

    So when I clicked a other player I go to on his head and is all good, but other players can see that I stand in place and just shake my head.

    What I must doing?

    My part of the code:
    Code:
          @EventHandler
        public void playerInteractPlayer(PlayerInteractEntityEvent e)
        {
            if(e.getRightClicked() instanceof Player)
            {
                Player p2 = (Player) e.getRightClicked();
                Player p = e.getPlayer();
               
                if(!p2.isInsideVehicle() && !p.isInsideVehicle())
                {
                    p.setPassenger(p2);
                }
           
            }
           
        }
     
  2. Offline

    Corndogoz

    Do you have any images from other players? Have you written any code to make you shake your head? Does your head only shake when you turn it while riding a player?
     
  3. Offline

    ArsenArsen

    @CraftRay this is I'm pretty sure a bug in Bukkit or Minecraft itself. Try running a different version
     
  4. @ArsenArsen Okey... so, can you find me this version?
    Because i try 3 diffrent version in 1.10.2 and not working...
     
  5. Offline

    ArsenArsen

    Try doing it in 1.10, or any other version. Of Minecraft.
     
  6. @ArsenArsen In 1.8 and down it working, so what I must doing, to work in 1.9+ as like in Mineplex?
     
  7. Offline

    ArsenArsen

    @CraftRay Yeah its either a Spigot or Bukkit bug, or a Minecraft bug. I do not know what you can do. I had the same problem when making a plugin.
     
Thread Status:
Not open for further replies.

Share This Page