public boolean addShrine(String name, String godName, Location p1, Location p2)
	{
		if(name == null || p1 == null || p2 == null) return false;
		God god = gH.getGod(godName);
		if(god == null) return false;
		
		//sort the points after there max and minimal coord value
		int maxX, maxY, maxZ, minX, minY, minZ, p1X, p1Y, p1Z, p2X, p2Y, p2Z;
		p1X = p1.getBlockX(); p1Y = p1.getBlockY(); p1Z = p1.getBlockZ();
		p2X = p2.getBlockX(); p2Y = p2.getBlockY(); p2Z = p2.getBlockZ();
		
/*		if(p1X > p2X) {maxX = p1X; minX = p2X;} else {maxX = p2X; minX = p1X;}
		if(p1Y > p2Y) {maxY = p1Y; minY = p2Y;} else {maxY = p2Y; minY = p1Y;}
		if(p1Z > p2Z) {maxZ = p1Z; minZ = p2Z;} else {maxZ = p2Z; minZ = p1Z;} */
		
		if(p1X<p2X) { minX = p1X; maxX = p2X; } else { minX = p2X; maxX = p1X;	}
		if(p1Y<p2Y) { minY = p1Y; maxY = p2Y; } else { minY = p2Y; maxY = p1Y;	}
		if(p1Z<p2Z) { minZ = p1Z; maxZ = p2Z; } else { minZ = p2Z; maxZ = p1Z;	}
		
		//create new locations of these sorted values (it's a cuboid this will work everytime ;))
		Location max = new Location(p1.getWorld(), maxX, maxY, maxZ);
		Location min = new Location(p1.getWorld(), minX, minY, minZ);
		
		//add a new shrine to the worlds list (world defined by one of the locations)
		getShrines().add(new Shrine(name, god, max, min));
		return true;
	}