Please help me with my plugin!

Discussion in 'Plugin Development' started by Pr0_fAssEr, Feb 8, 2015.

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

    Pr0_fAssEr

    I try to code a Enderman kit which you teleport to the player you looking on

    this is what i did:
    [​IMG]
    Now the kit is working great im getting speed when right clicking with 100Level but i dont now at all how to do
    the teleport skill.
    Please help me
    Skill- Teleport to other players, behide ther back! And same but thorw blocks. And the teleport works only on the player that the sender point on with is sword!

    TNX FOR THE HELPERS!
     
    Last edited: Feb 9, 2015
  2. Offline

    tomudding

    Use something like this \/
    Code:
    Location location = new Location(world, x, y, z);
    player.teleport(location);
    but with other players coordinates of course and use Google the next time, there is a lot of information on the internet
     
  3. Offline

    Pr0_fAssEr

    ITS NOT GONNA TELEPORT THE PLAYER TO OTHER PLAYER..
     
  4. Offline

    uksspy

  5. Offline

    Pr0_fAssEr

    Bro please send me the code or fix it to me im bad at english so please help me
     
  6. Offline

    uksspy

    I basically did send you the code. Take a look at they thread I sent you. All you need to do is implement it into your plugin.
     
  7. Offline

    BaconStripzMan

    If you can't figure this out, you're gonna need some good luck -.-
     
  8. Offline

    nj2miami

    There are so many problems with this code, I do not know how it works at all.

    1. Its checking .getLevel(100) which means a player needs to have 100 LEVELS not XP.
    2. Why are you running for(Players : getOnlinePlayers()) ?? What a mess of code that is.
    Your entire code does not remotely try to do what you are asking, so I am afraid you won;t find many answers here until you clean it up.
     
Thread Status:
Not open for further replies.

Share This Page