public static Inventory fromString(String s) {
        YamlConfiguration configuration = new YamlConfiguration();
        try {
            configuration.loadFromString(Base64Coder.decodeString(s));
            Inventory i = Bukkit.createInventory(null, configuration.getInt("Size"), configuration.getString("Title"));
            ConfigurationSection contents = configuration.getConfigurationSection("Contents");
            for (String index : contents.getKeys(false))
                i.setItem(Integer.parseInt(index), contents.getItemStack(index));
            return i;
        } catch (InvalidConfigurationException e) {
            return null;
        }
    }