BookDupe
Overview
I coded this plugin based on a request posted on the MinerAp subreddit by user loveandpolitics. The purpose of this plugin is to allow users to easily create copies of books without having to struggle with the (currently) limited cut-and-paste.
The plugin simply adds three new recipes:
- Signed (written) book + Book & Quill = 2x Signed (written) book
- Signed (written) book + feather + ink sack + book = 2x Signed (written) book
- Signed (written) book + feather + ink sack = 1x Book & Quill
The first two simply make copies of signed books. The third recipe strips the existing title and author tags from a Written Book, making it into a Book & Quill for further editing, while keeping the text intact.
Features
- Two recipes to duplicate books from
- Shift-click support to duplicate multiple books at once
- Sophisticated permissions
- Includes PluginMetrics support
- Functions via NBTTags, instead of the volatile ItemStack.clone()
- Ability to restrict the copying of potentially exploited (or exploitable), enchanted books
Permissions
Permission | Usage |
bookdupe.copy | Allows for the copying of any book from any author |
bookdupe.copy.self | Allows a user to copy books which belong to them |
bookdupe.copy.others | Allows a user to copy books which do not belong to them |
bookdupe.unsign | Allows a user to unsign any book from any author |
bookdupe.unsign.self | Allows a user to unsign books which belong to them |
bookdupe.unsign.others | Allows a user to unsign books which do not belong to them |
bookdupe.enchanted | Allows a user to copy/unsign enchanted books |
bookdupe.enchanted.transfer | Allows a user to retain the enchantment when copying/unsigning books |
Source
https://github.com/Indiv0/BookDupe
Download
http://dev.bukkit.org/server-mods/bookdupe/files/
Changelog
Version | Changes | Compatible Builds |
1.16.0 | Update to 1.7.2 | 1.7.2 |
1.15.0 | Bugfix | 1.6.4 |
Permissions fix | 1.6.2 | |
Jar size optimization | ||
1.12.1 | Minor bugfix | 1.6.4 |
1.6.2 | ||
1.12.0 | Expanded permissions | 1.6.2 |
Massive code restructuring and optimization | ||
1.11.0 | Moved to Mbapi | 1.5.2 R-1.0 |
Inverted permissions | ||
Added third recipe | ||
Various minor fixes | ||
1.4.2 | Various fixes | 1.4.7 R-0.1 |
Removed CB reliance | ||
Forced Java 7 | ||
1.4.1 | Updated for Bukkit 1.4.6 | 1.4.6 R-0.1 |
1.4 | Fixed Java 6 compatibility | 1.4.2 R-0.2 |
Fixed PluginMetrics implementation | 1.3.2 R-3.0 | |
1.3.1 | Built against Java 6u37 to ensure compatibility | 1.3.2 R-3.0 |
1.3 | The entire book copying system now functions through the transfer of NBTTags | 1.3.2 R-3.0 |
Added config.yml along with some default configuration settings | 1.3.2 R-2.0 | |
Added ability to check and restrict or allow the copying of books with illegitimate enchantments | ||
1.2.4 | Fixed spelling mistake on one of the error messages | 1.3.2 R-2.0 |
1.2.3 | Fixed bug introduced in 1.2.1 where user could not duplicate books at all due to an error in NBTTag checking | 1.3.2 R-2.0 |
1.2.2 | Added PluginMetrics support | 1.3.2 R-1.0 |
1.2.1 | Added the ability to restrict a player's ability to copy books (via permissions) | 1.3.2 R-1.0 |
1.2 | Added secondary recipe to craft multiple books | 1.3.2 R-1.0 |
Added shift-click support to secondary recipe | ||
1.1 | Fixed a bug resulting from clicking the result slot twice in a row | Unknown |
1.0 | Books successfully duplicate when placed as a shapeless recipe | Unknown |
Bugs/TODO
All bugs and TODO information can be found on the issue tracker for this project on GitHub.
Credits
Thank you to AgentME for your contribution.
Nevermind. If I read the permissions right you can.
@SilasPC
It's for survival servers. Where players don't have access to NBT editors or creative.
Why would you want this? I mean, you could just use middle mouse button on the item... Also NBT editors are great for these kind of things if you absolutely aren't going to creative.
@lJunKunl
Hmm that is weird.
Well I've rewritten Metrics support for the newest version, so that update should fix it.
Expect it in the next few days once I finish my exams.
I get the following error message when first trying to run Bookdupe. I'm using the latest version available for download (v1.4.2)
@JiFish
Well from the error message it looks like you are running an outdated version of BookDupe (1.4.1), which uses a deprecated NBT access method, which has since been updated in version 1.4.2.
And yes, you will be seeing updates for 1.5 once I have more time to work on the plugin (critical bugs will be fixed ASAP).
I get the following error when starting this in the most recent development builds of craftbukkit. Will we see an update for 1.5.x versions? Thanks.
@CommodoreAlpha
It's updated.
This needs to be updated for 1.4.7.
And, can you add a configuration so that we can change the recipe for book copying?
Does the permission, "bookdupe.use" mean that a player can only copy their own books?
@poiNt3D
Sure thing! I'll see what I can do.
Can you make it possible to protect some special books from copying? Like blacklist by name or by author. It might be useful when you have some quest-related books and do not want your players to copy them.
@jolefon
Sorry! I just tested BookDupe and there is a bug where the permissions do not allow you to duplicate books, even if configured correctly. I will fix this ASAP.
@jolefon
Will not what? I cannot understand what you are asking.
My project is very much active.
Hello , you projet is disable ?
Because your project will not
@dickwick
Mkay done! Read the updated project overview for details on the permissions and how to use them. The new file will be available for download as soon as the moderators approve it.
@dickwick
No, not at the moment. That does sound like a good idea however so I'll try to implement it :)
Is there possible option (permissions/config) to allow user copy only their books?