help me to code teleporting plugin?

Discussion in 'Plugin Development' started by iRasS_7rba, Nov 16, 2013.

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

    iRasS_7rba

    hello there!

    I trying to make a simple teleporting plugin, but I failed, Can any developer code it for me?

    what i want is: First you need to create teleport name "/plugin create [name]" then select area on ground like " /plugin pos1" and "/plugin pos2" this will select the blocks! Y,Z,X
    then "/plugin stick" will give you a blaze rod , now Right click on any block

    now the teleport you have created is done, if you move on selected area, you will be teleported to blaze rod block! that block which you have right click on it!

    and you can list warp names "/plugin list"
    it will show like this:
    "--warps--
    1.name
    2.name
    "

    and you can delete them "/plugin delete [warp name]"

    that is all, I hope if someone gonna help me to code that

    NOTE: PLEASE DON'T GIVE ME ANY PLUGIN, I NEED HELP TO LEARN CODING SO IF YOU ARE DEVELOPER PLEASE HELP ME TO CODE THAT, thanks!
     
  2. iRasS_7rba You're in the wrong section ;) Go into the plugin developement forum, open a thread with your actual source code + problem and some1 will help you there!
     
  3. Offline

    braden5252

    Seems Simple Ill Help

    Code:java
    1. World w = Bukkit.getServer().getWorld(getConfig().getString("bluespawn.world"));
    2. double x = getConfig().getDouble("bluespawn.x");
    3. double y = getConfig().getDouble("bluespawn.y");
    4. double z = getConfig().getDouble("bluespawn.z");
    5. p.teleport(new Location(w, x, y, z));
     
  4. Offline

    Onlineids

    Wrong section head over to plugin dev.
     
Thread Status:
Not open for further replies.

Share This Page