@@ -0,0 +1,1861 @@
+package de.iani.cubequest.util;%0D%0A%0D%0A%0D%0Aimport org.bukkit.Location;%0D%0Aimport org.bukkit.Server;%0D%0Aimport org.bukkit.World;%0D%0Aimport org.bukkit.configuration.ConfigurationSection;%0D%0A%0D%0Apublic class ConfigurationUtils %7B%0D%0A    %0D%0A    public static Location getLocation(ConfigurationSection section, String name, Server server) %7B%0D%0A        ConfigurationSection subsection = section.getConfigurationSection(name);%0D%0A        if (subsection == null) %7B%0D%0A            return null;%0D%0A        %7D%0D%0A        String worldName = subsection.getString(%22world%22);%0D%0A        World world = worldName != null && server != null ? server.getWorld(worldName) : null;%0D%0A        double x = subsection.getDouble(%22x%22);%0D%0A        double y = subsection.getDouble(%22y%22);%0D%0A        double z = subsection.getDouble(%22z%22);%0D%0A        float yaw = (float) subsection.getDouble(%22yaw%22);%0D%0A        float pitch = (float) subsection.getDouble(%22pitch%22);%0D%0A        return new Location(world, x, y, z, yaw, pitch);%0D%0A    %7D%0D%0A    %0D%0A    public static void setLocation(ConfigurationSection section, String name, Location location) %7B%0D%0A        setLocation(section, name, location, false);%0D%0A    %7D%0D%0A    %0D%0A    public static void setLocation(ConfigurationSection section, String name, Location location,%0D%0A            boolean includeYawAndPitch) %7B%0D%0A        if (location != null) %7B%0D%0A            ConfigurationSection subsection = section.createSection(name);%0D%0A            if (location.getWorld() != null) %7B%0D%0A                subsection.set(%22world%22, location.getWorld().getName());%0D%0A            %7D%0D%0A            subsection.set(%22x%22, location.getX());%0D%0A            subsection.set(%22y%22, location.getY());%0D%0A            subsection.set(%22z%22, location.getZ());%0D%0A            if (includeYawAndPitch) %7B%0D%0A                subsection.set(%22yaw%22, location.getYaw());%0D%0A                subsection.set(%22pitch%22, location.getPitch());%0D%0A            %7D%0D%0A        %7D%0D%0A    %7D%0D%0A%7D%0D%0A

Include Brokko's ConfigurationUtils