Bukkit/CraftBukkit — pull request #836 by h31ix (2012-08-04 07:45:05+00:00)
Title: Support saving book content

First off, I want to preface this PR by saying I may be totally off in my way of doing this. It works, and does not mess up any pre-existing enchantment stuff, but there could be a better way of doing it. I'm not totally familiar with this code, and so I'm just doing it the way it makes sense to me.

CraftBukkit does not currently support Books, which means by putting a book in a dispenser, for instance, will wipe the books content, title, and author. This Pull Request implements that support, so that the title, author, and pages still exist in the ItemStack's tags.

This could also be the start of a Book API, but I won't get into that now. If this is a poor way of doing something, please let me know.

Jira Ticket: https://bukkit.atlassian.net/browse/BUKKIT-2045