How to convert a String and 3 Doubles to a Location?

Discussion in 'Plugin Development' started by civ77, Dec 21, 2011.

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

    civ77

    In my configuration file I have a string for the World something is in, a double for its x coordinate, a double for its y coordinate and another double for its z coordinate. How do I convert these to a Location?
     
  2. Offline

    Trc202

    Location location = new Location(getServer().getWorld("WorldString"),x,y,z)
    Note not sure if this is completely accurate didn't test but the basic syntax is the same.
     
  3. Offline

    civ77

    oh i forgot the new Location(...) part, thanks.
     
Thread Status:
Not open for further replies.

Share This Page