Teleport to an other world

Discussion in 'Plugin Development' started by Arcticmike, Apr 24, 2014.

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

    Arcticmike

    Hello i am trying to make a plugin so i can teleport to an other world this is what i got
    Code:java
    1. p.teleport(new Location(getServer().getWorld("world1"), 100, 100, 100));
    2.  

    but it keeps giving me errors please help!
     
  2. Offline

    adam753

    What error do you get?
     
  3. Offline

    GyllieGyllie

    try

    Code:java
    1. p.teleport(new Location(Bukkit.getWorld("world1"), 100, 100, 100));
     
  4. Offline

    adam753

    GyllieGyllie See, I thought that might be the problem but I wasn't going to suggest it. If indeed it can be fixed that way, then it indicates a common rookie mistake that he's only going to get frustrated with in future unless it's explained to him.
     
  5. Offline

    GyllieGyllie

Thread Status:
Not open for further replies.

Share This Page