@SuppressWarnings("unchecked")
		static void save()
		{
			Protect.log.info("[XolioProtect]Saving cuboids...");
			try {
				fos = new FileOutputStream(new File("plugins/XolioProtect/cubos.txt"));
			} catch (FileNotFoundException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			// #######################################################################################
			writeln("# XolioProtect cuboid file auto generated, don't modify. Use ingame cmds.");
			Set<String> cubos = CuboidsList.getRaw().keySet();
			String cles[] = cubos.toArray(new String[0]);
			@SuppressWarnings("unused")
			Map<String,Integer> flags;
			int n = cubos.size();
			int x = 0;
			while(x < n)
			{
				Cuboid testable;
				testable = CuboidsList.getRaw().get(cles[x]);
				writeln("@cuboname:"+cles[x]);
				flags = testable.getAllFlags();
				//writeln("!world="+testable.world);
				//writeln("!owner="+testable.getOwner());
				//int pos[] = testable.getPos();
				/*writeln("!sx="+pos[0]);
				writeln("!sy="+pos[1]);
				writeln("!sz="+pos[2]);
				writeln("!ex="+pos[3]);
				writeln("!ey="+pos[4]);
				writeln("!ez="+pos[5]);*/
				for(Iterator i=testable.getAllFlags().keySet().iterator();i.hasNext();){
					String flagname = (String) i.next();
					writeln("&"+flagname+"="+testable.getFlag(flagname));
				}
				for(Iterator i=testable.getAllProps().keySet().iterator();i.hasNext();){
					String flagname = (String) i.next();
					writeln("!"+flagname+"="+testable.getProp(flagname));
				}
				x++;
				writeln("*endcubo");
			}
			// #######################################################################################
			try {
				fos.close();
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}	
		}