You have to get the location from the home and its player. After that compare both locations to get the distance.
Code:JAVA int x = Bukkit.getPlayer("SomePlayer").getLocation().getBlockX(); int y = Bukkit.getPlayer("SomePlayer").getLocation().getBlockY(); int z = Bukkit.getPlayer("SomePlayer").getLocation().getBlockZ(); World world = Bukkit.getPlayer("SomePlayer").getLocation().getWorld(); int hx = getConfig().getInt("Player.Home.X"); int hy = getConfig().getInt("Player.Home.y"); int hz = getConfig().getInt("Player.Home.z"); String hworld = getConfig().getString("Player.Home.world"); int dx = x-hx; int dy = y-hy; int dz = z-hz; System.out.println("The Distance is: X: " + dx + " Y: " + dy + " Z: " + dz + " In world: " + hworld);