public Location getPlayerSpawnLocation(Player player, Location location){
		Location location_new = location;
		String worldName = location.getWorld().getName();
		
		for (String worldN : plugin.mainWorlds){
			if (worldName.startsWith(worldN + "_")){
				//World is a copy world
				String playerName = player.getName();
					
				customConfigurationFile = new File(plugin.getDataFolder(), "players.yml");
				customConfig = YamlConfiguration.loadConfiguration(customConfigurationFile);
						    
				InputStream defConfigStream = plugin.getResource("players.yml");
				if (defConfigStream != null) {
				    YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream);
				    customConfig.setDefaults(defConfig);
				}else{
					plugin.logMessage("Plugin error: Error while loading config file players.yml");
				}
						
				String worldet =  customConfig.getString(player.getName() + ".world");
				
				Double x = null, y = null, z = null;
				
				if (worldet != null && worldName.equals(worldet)){
					x = customConfig.getDouble(playerName + ".x", location.getX());
					y = customConfig.getDouble(playerName + ".y", location.getY());
					z = customConfig.getDouble(playerName + ".z", location.getZ());
					
					location_new = new Location(location.getWorld(), x, y, z);
				}
				
				if (location.getX() == location_new.getX() && location.getY() == location_new.getY() && location.getZ() == location_new.getZ() && worldName.equals(worldet)){
					location_new = location;
				}
			}
		}
		
		return location_new;
	}