location help

Discussion in 'Spigot Plugin Help' started by minecrafters, May 9, 2015.

  1. Code (Text):
    Location loc = new Location(Bukkit.getWorld(getConfig().getString("spawns.1.world"), getConfig().getInt("spawns.1.x"), getConfig().getInt("spawns.1.y"), getConfig().getInt("spawns.1.z")));
    ok so am createing a config file anyway the bukkit.getWorld i get a error any one know why?
    error says
    The method getWorld(String) in the type Bukkit is not applicable for the arguments (String, int, int, int)
    Code (Text):
        world: "world"
        x: 69
        y: 69
        z: 69