public static void save(){
		File dir = new File(BetterLamps.p.getDataFolder(), "lamps");
		if(!dir.exists()){
			dir.mkdir();
		}
		
		for(String player:getPlayers()){
			File file = new File(BetterLamps.p.getDataFolder()+"/lamps", player+".yml");
			FileConfiguration configFile = new YamlConfiguration();
			
			
			for(World world:BetterLamps.p.getServer().getWorlds()){
				Map<Integer,List<String>> typelists=new HashMap<Integer,List<String>>();
				typelists.put(1,new ArrayList<String>());
				typelists.put(2,new ArrayList<String>());
				typelists.put(3,new ArrayList<String>());
				
				
				for(Lamp lamp:lamps){
					if(lamp.block.getWorld()==world){
						if(lamp.player.equals(player)){
							List<String> list=typelists.get(lamp.type);
							list.add(lamp.block.getX()+","+lamp.block.getY()+","+lamp.block.getZ());
							typelists.put(lamp.type, list);
						}
					}
				}
				
				for(Integer key:typelists.keySet()){
					if(typelists.get(key).size()>0){
						configFile.set(world.getName()+"."+key,typelists.get(key));
					}
				}
			}
			
			try {
				configFile.save(file);
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}