public void loadWarps() {
        if (getOldFile().exists() && !warpConfigFile.exists()) {
            loadWarpsOld();
            getOldFile().delete();
            saveWarps();
            return;
        }

        ArrayList<String> list = Helper.getChildren(warpConfig, "warps");

        for (String name : list) {
            String worldName = warpConfig.getString("warps." + name + ".world");
            double x = warpConfig.getDouble("warps." + name + ".x");
            double y = warpConfig.getDouble("warps." + name + ".y");
            double z = warpConfig.getDouble("warps." + name + ".z");
            Float yaw = 0F, pitch = 0F;

            if (warpConfig.contains("warps." + name + ".yaw")) {
                yaw = Float.parseFloat(warpConfig.getString("warps." + name + ".yaw"));
            }

            if (warpConfig.contains("warps." + name + ".pitch")) {
                pitch = Float.parseFloat(warpConfig.getString("warps." + name + ".pitch"));
            }

            Warp warp = new Warp(name, worldName, x, y, z, yaw, pitch);
            WarpManager.addWarp(warp);
        }
    }